Revoke a permission on a file (ASK-125)
DELETE/files/:file_id/grants
Removes the file_grants row matched by (file_id, grantee_type,
grantee_id, permission). Only the file owner may revoke.
Returns 204 when a row was deleted, 404 when no matching grant
exists. Each (grantee_type, grantee_id, permission) tuple is a
distinct grant -- revoking view does NOT cascade to share
or delete.
Request
Responses
- 204
- 400
- 401
- 403
- 404
- 500
Grant revoked
Bad request
Unauthorized
Forbidden
Not found
Internal server error