These web services delete attachments from documents based on a metadata selection.
Two methods are available to remove an attachment:
- These web services are only available to users or API keys with the
ADMIN
,KHUB_ADMIN
, orCONTENT_PUBLISHER
role. - Users or API keys with the
CONTENT_PUBLISHER
role can only add or update an attachment for a document published through a source they have permissions for. - It is necessary to define user credentials in the HTTP header when calling this web service.
It is possible to remove an attachment from all publications in the portal using its originId
as follows:
/api/admin/khub/documents/attachments?ft:isPublication=true