Skip to main content
Remove Entity from Collection
Removes an entity from the specified collection. Removing an entity that is not in the collection is not an error: it answers 200 with the same body.

Path Parameters

string
required
The ID of the collection.
string
required
The ID of the entity to remove.

Query Parameters

string
Service key only, and required with one: the user this request acts as. Must own the collection. A user token always acts as its own user and must not send it (400 collection/acting-user-not-allowed).

Response

Returns HTTP 200 with the collection’s summary after the removal, whether or not the entity was in the collection.
string
Collection ID.
string
The collection’s name.
number
The collection’s entityCount after the removal.

Error Responses

A service key sent no actingUserId.
A user token sent actingUserId, even naming its own user. Only a service key names the user it acts as; a user token always acts as its own user.
Returned when a service key names an actingUserId that isn’t a user in this project.
The request sent userId. On this route the user a service key acts as is actingUserId.With a service key:
With a user token, or with no credentials: