Grant a permission on a collection to a principal
POST /collections/{id}/acls
POST
/collections/{id}/acls
Inserts one ACL row. Requires write access to the collection (owner / collections.admin / system.admin).
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string format: uuid
Request Body required
Section titled “Request Body required ”object
principal_type
required
string
principal_id
required
string
permission
required
string
expires_at
string format: date-time
Responses
Section titled “ Responses ”ACL row added
Malformed request
object
error
required
Human-readable error summary
string
Example
the request could not be completedAuthentication required, missing, or invalid
object
error
required
Human-readable error summary
string
Example
the request could not be completedExample
{ "error": "authentication required: sign in and retry with a valid session or API token"}Authenticated but missing required capabilities
object
error
required
Human-readable error summary
string
Example
the request could not be completedResource not found
object
error
required
Human-readable error summary
string
Example
the request could not be completed