Skip to main content
PATCH
/
lists
/
people
/
{listId}
Modify a people list
curl --request PATCH \
  --url https://app.tryspecter.com/api/v1/lists/people/{listId} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "add_ids": [
    "per_5e3a7f2b0aa7a3270a55f2a7"
  ],
  "delete_ids": [
    "per_5e3a7f2b0aa7a3270a55f2a7"
  ]
}'
{
  "id": "b73c8bed-3b92-48f9-a879-40ee114dca03",
  "name": "Favourites",
  "created_at": "2024-11-14T10:36:12.625Z",
  "updated_at": "2024-11-14T10:36:12.625Z",
  "people": [
    {
      "person_id": "per_2f3c7fe468ec9fc2181bec8b",
      "created_at": "2025-01-02T17:29:46.688Z"
    }
  ]
}

Authorizations

X-API-Key
string
header
required

Path Parameters

listId
string<uuid>
required

The UUID of the list being requested

Body

application/json

Request to add and delete ids

add_ids
string[]

List of people to add to the list

ID of person being added

delete_ids
string[]

List of people to remove from the list

ID of person being removed

Response

The list including people ids

id
string

List Id

Example:

"b73c8bed-3b92-48f9-a879-40ee114dca03"

name
string

Name of the list

Example:

"Favourites"

created_at
string<date-time>

Date list was created

Example:

"2024-11-14T10:36:12.625Z"

updated_at
string<date-time>

Date the list was last updated

Example:

"2024-11-14T10:36:12.625Z"

people
object[]

The people included in this list

I