Permissions
Update role permissions on asset
Updates 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://jostens.com
- Authnone declared
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
Changes to this operation have not been checked yet.