Permissions
Update role permissions on asset
Changed onUpdates permissions for a specific role on a host or folder. Automatically breaks permission inheritance if the asset currently inherits. Only admin users can access this endpoint. Omitting a scope preserves existing permissions; empty array removes permissions.
put/api/v1/permissions/role/{roleId}/asset/{assetId}
Request
- Base URLhttps://docs.anzworldline-solutions.com.au
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
roleIdstring required
Role identifier
assetIdstring required
Asset identifier (Host ID, Host Name, or Folder ID)
Query parameters
cascadeboolean
If true, cascades permissions to all child assets
Request body
Example request
{
"permissions": {
"INDIVIDUAL": [
"READ",
"WRITE"
],
"CONTENT": [
"READ",
"PUBLISH"
]
}
}Response
Permissions updated successfully
Example response
{
"entity": {
"roleId": "abc-123-def-456",
"roleName": "Content Editor",
"asset": {
"id": "abc-123-def-456",
"type": "HOST",
"name": "demo.dotcms.com",
"path": "/demo.dotcms.com/application",
"hostId": "abc-123-def-456",
"canEditPermissions": true,
"permissions": {
"INDIVIDUAL": [
"READ",
"WRITE",
"PUBLISH"
],
"CONTENT": [
"READ"
]
}
}
}
}Changes
- info
endpoint added
- info