Zum Inhalt springen

Delete a collection share

DELETE
/api/collections/{id}/shares/{shareId}
curl --request DELETE \
--url https://firma.company-gpt.com/companygpt/rag/api/api/collections/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/shares/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>'

Remove a share. Only the collection owner may delete shares.

id
required
string format: uuid

Collection UUID

shareId
required
string format: uuid

Share UUID

Share deleted

Invalid request

Unauthorized

Forbidden — only the collection owner may delete shares

Collection or share not found