Permissions
Update user permissions on asset
Changed onSaves permissions for a user's individual role on a specific asset (host or folder). This endpoint assigns permissions directly to the user's individual role. If the asset inherits permissions, inheritance will be broken automatically before saving. Optionally cascade permissions to descendants (removes their individual permissions). Only admin users can update permissions.
put/api/v1/permissions/user/{userId}/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
userIdstring required
User ID or email address
assetIdstring required
Asset identifier (host ID or folder inode)
Request body
Example request
{
"permissions": {
"INDIVIDUAL": [
"READ",
"WRITE"
],
"HOST": [
"READ"
]
}
}Response
User permissions updated successfully
Example response
{
"entity": {
"userId": "admin@dotcms.com",
"roleId": "abc-123-def-456",
"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"
],
"HOST": [
"READ"
]
}
}
}
}Changes
- info
endpoint added
- info