curl --request POST \
--url https://api.replyke.com/api/v6/:projectId/api/v7/collections/:collectionId/entities \
--header 'Content-Type: application/json' \
--data '
{
"entityId": "<string>"
}
'{
"success": true,
"collection": {
"id": "<string>",
"entityCount": 123
}
}Save an entity into a collection
curl --request POST \
--url https://api.replyke.com/api/v6/:projectId/api/v7/collections/:collectionId/entities \
--header 'Content-Type: application/json' \
--data '
{
"entityId": "<string>"
}
'{
"success": true,
"collection": {
"id": "<string>",
"entityCount": 123
}
}true on success.Collection Not Found — 404
{ "error": "Collection not found", "code": "collection/not-found" }
Entity Not Found — 404
{ "error": "Entity not found", "code": "entity/not-found" }
Server Error — 500
{ "error": "Internal server error.", "code": "collection/server-error" }