Delete A File/ Multiple Files
delete
/api/v1/{entity-type}/{entity-id}/{property}/documents/{document-id}
Parameters
Path
entity-type*
Entity type for which the template will be uploaded
entity-id*
Entity ID for mentioned Entity Type
property*
any String for eg templates for uploading html template
document-id
ID of document that was uploaded. If this is not provided, entire directory that holds any no of files will be deleted
Header
authorization
Set to
Bearer {access-token}
if roles in schema is not anonymous. Else authorization can be emptyResponses
200: OK
Success in deleting a/multiple files
curl --location \
--request DELETE '{registry-url}/api/v1/{entity-type/{entity-id}/{property}/documents/{document-id}' \
--header 'Authorization: Bearer {access-token}'
http DELETE '{registry-url}/api/v1/{entity-type/{entity-id}/{property}/documents/{document-id}' \
Authorization:'Bearer {access-token}'
{registry-url}
is usually http://localhost:{port}. The port can be found under theregistry
section in thedocker-compose.yml
file and is usually8081
.
Last modified 9mo ago