Grant a permission on an asset_type to a principal
POST /asset_types/{ref}/acls
POST
/asset_types/{ref}/acls
Inserts one ACL row. Re-granting the same tuple refreshes granted_at / granted_by / expires_at — idempotent. The first row inserted flips the type from “open” to “restricted” for non-admin callers.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” ref
required
integer format: int64
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