Skip to main content

Close a public download link.

DELETE/api/v1/documents/{document_id}/permalinks/{permalink_id}documents:download

Switches the link off: opening it answers 404 from then on. The row stays as the record, with its open count. Only the person who made the link can close it; closing a link that is already closed does nothing. Needs Revoke Document Permalinks, and no access to the document, so a link outlives the right to make it only until its maker closes it.

Scopedocuments:download
AsynchronousNo
MCP tooldelete_document_permalink
Portal permissionsrevoke_document_permalinks

Parameters​

NameInTypeRequiredDescription
document_idpathstringRequired
permalink_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-MatchheaderstringOptional

Responses​

StatusDescriptionBody
204Done.
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
412precondition_failedapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.