Get the permission on an object
GET/permissions/:object_type/:object_id
Returns the permission of the calling API key on one object, as the sum of the permission bits: read 4, write 2 and execute 1. The value combines the key's permission on the object type with the key's permission on the object.
Permissions. None. The operation reports the permissions of the calling key, and any valid API key can call the operation.
Access control describes the permission model.
Request
Responses
- 200
- 400
- 401
The body is the calling key's permission on the object, a number from 0 to 7. The operation does not check that the object exists.
The object type is not a known object type (Invalid object type).
The authentication headers are missing or invalid, or the API key is inactive or expired. Errors lists the messages.