update-resource-permission
restish dci update-resource-permission resourceType resourceId
Updates the permissions associated with the specified Cloud Analytics resource. Supports Attributions, Attributions Groups, Alerts, Budgets, and Reports.
Request
Content-Type: application/json
Schema
{
"type": "object",
"properties": {
"permissions": {
"type": "array",
"items": {
"type": "object",
"description": "A single user's permission entry for a resource.",
"properties": {
"user": {
"type": "string",
"description": "The email address of the user to whom the role is assigned."
},
"role": {
"type": "string",
"description": "The role assigned to the user, defining their level of access to the resource.",
"enum": [
"owner",
"editor",
"viewer"
]
}
}
}
},
"public": {
"type": "string",
"description": "The type of permissions granted to all users in the organization for this resource.",
"enum": [
"editor",
"viewer"
],
"nullable": true
}
}
}
Responses
200 (application/json)
OK - Resource permissions configuration updated.
{
"type": "object",
"description": "Permissions and metadata for a resource returned by the sharing API.",
"properties": {
"id": {
"type": "string",
"description": "Resource ID."
},
"name": {
"type": "string",
"description": "Resource name."
},
"description": {
"type": "string",
"description": "Resource description."
},
"createTime": {
"type": "integer",
"description": "The time when this resource was created, in milliseconds since the epoch.",
"format": "int64"
},
"updateTime": {
"type": "integer",
"description": "The time when this resource was last updated, in milliseconds since the epoch.",
"format": "int64"
},
"permissions": {
"type": "array",
"items": {
"type": "object",
"description": "A single user's permission entry for a resource.",
"properties": {
"user": {
"type": "string",
"description": "The email address of the user to whom the role is assigned."
},
"role": {
"type": "string",
"description": "The role assigned to the user, defining their level of access to the resource.",
"enum": [
"owner",
"editor",
"viewer"
]
}
}
}
},
"public": {
"type": "string",
"description": "Type of permissions users in the entire organization have for this resource",
"enum": [
"editor",
"viewer"
],
"nullable": true
}
}
}