/remove
POST /collection/remove/{collection_id} — Remove the listed objects from a collection.
POST /collection/remove/{collection_id} — Remove the listed objects from a collection.- Requires an authenticated user with
BAG_READpermission. - Unlinking objects from the collection requires the
UNLINKpermission. - The request body is a bare JSON array of objects to unlink (each
identified by
_global_object_idorlookup:_global_object_id). Unlikepush/splice, the array is sent directly, not wrapped in anobjectsproperty. - If one or more objects in the body are not currently linked to the
collection, the call fails with
400 CollectionRemoveNotAllObjectsFound. - The
_versionof the collection is not changed.
Access token in the Authorization header:
Authorization: Bearer <token>.
The collection id of the collection to access.
If set, do not queue index jobs for objects added to or removed from the collection.
The access token in form of Bearer <token>. You can also use authorization
which does the same. authorization is looked at first.
The access token in form of Bearer <token>.
A bare JSON array of objects to unlink (each identified by
_global_object_id or lookup:_global_object_id). Unlike
push / splice, the array is sent directly, not wrapped in an
objects property.
The object id identifying the object. This is considered a local object if has
the format <system object id>@local or <system object id>@<db uuid>. All other ids
are considered foreign and accepted without further checks. Local ids are checked
for existance.
Short response of containing only the number of objects.
The _version of the collection.
The number of objects linked to this collection.
The request could not be processed. In particular, the response
code may be CollectionRemoveNotAllObjectsFound if one or
more objects in the payload are not in the collection.
No authenticated user. The request must carry a valid access token.
The authenticated user lacks a required permission (BAG_READ
on the collection, UNLINK on the objects).
The collection addressed by the URL does not exist.
Last updated