POST
/files.revokePublicURLRevoke a file's public URL
Revokes public or external sharing access for a file. Supply the file ID in file to identify the file whose public access you want to remove. The response includes the updated file object after access is revoked.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
tokenstringoptional
Authentication token with the `files:write:user` scope.
Form-encoded data identifying the file whose public sharing access will be revoked.
filestringoptional
File to revoke
200Returns an object with `ok` set to true and the updated file object.
fileobjectrequired
okbooleanrequired
defaultReturns an object with `ok` set to false and an `error` value when access cannot be revoked or the request is invalid.
callstackstringoptional
Note: PHP callstack is only visible in dev/qa
errorstringrequired
okbooleanrequired
Error handling
file must identify the file whose public or external sharing access you want to revoke. The authentication token must have the files:write:user scope.