POST
/
api
/
collection-contents
/
delete-collection-contents
curl --request POST \
  --url https://api.opus.pro/api/collection-contents/delete-collection-contents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "q": "findByCollectionIdAndContentId",
  "collectionId": "xmAwhhFi0IJt",
  "contentId": "Q20107035eDq.CU0b92e6"
}'
{
  "data": "success"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
q
enum<string>
required

Query type findByCollectionIdAndContentId is the only valid value, means delete relation by collectionId + contentId

Available options:
findByCollectionIdAndContentId
collectionId
string
required

The collectionID of the collection that you want to remove the clip from.

Example:

"xmAwhhFi0IJt"

contentId
string
required

The ID of the clip that you want to remove from the collection. FullClipId: {projectId}.{curationId}

Example:

"Q20107035eDq.CU0b92e6"

Response

200 - application/json
data
string

Show action execute status

Example:

"success"