Skip to main content
PATCH
/
:projectId
/
lists
/
:listId
/
add-entity
Add Entity to List
curl --request PATCH \
  --url https://api.replyke.com/api/v6/:projectId/lists/:listId/add-entity \
  --header 'Content-Type: application/json' \
  --data '{
  "entityId": "<string>"
}'
{
  "id": "<string>",
  "projectId": "<string>",
  "userId": "<string>",
  "name": "<string>",
  "entityIds": [
    {}
  ],
  "createdAt": "<string>",
  "updatedAt": "<string>"
}
Adds an entity to the specified list for the authenticated user. Prevents duplicate additions.

Path Parameters

listId
string
required
ID of the target list

Body Parameters

entityId
string
required
ID of the entity to add to the list

Response

id
string
Unique list identifier
projectId
string
Project identifier
userId
string
ID of the user who owns the list
name
string
Name of the list
entityIds
array
Updated array of entity IDs saved in this list (includes the newly added entity)
createdAt
string
Creation timestamp in ISO 8601 format
updatedAt
string
Last update timestamp in ISO 8601 format

Error Responses

{
  "error": "Missing listId",
  "code": "list/missing-data"
}
{
  "error": "List not found",
  "code": "list/not-found"
}
{
  "error": "Entity already exists in the list",
  "code": "list/entity-exists"
}
{
  "error": "Internal server error.",
  "code": "list/server-error",
  "details": "<Error message>"
}

Notes

  • Entity will not be added again if it already exists in the list.
  • The response includes the updated and populated list object.
I