UpdateAuthorization
Update Authorization
UpdateAuthorization updates the authorization.
Note that any role keys previously granted to the user and not present in the request will be revoked.
Required permissions:
- "user.grant.write"
Header Parameters
Connect-Protocol-Version*number
Define the version of the Connect protocol
Value in
1Connect-Timeout-Ms?number
Define the timeout, in ms
Request Body
application/json
id?string
ID is the unique identifier of the authorization.
roleKeys?role_keys
RoleKeys are the keys of the roles the user should be granted. Note that any role keys previously granted to the user and not present in the list will be revoked.
[key: string]?never
Response Body
application/json
application/json
curl -X POST "https://loading/zitadel.authorization.v2.AuthorizationService/UpdateAuthorization" \ -H "Connect-Protocol-Version: 1" \ -H "Content-Type: application/json" \ -d '{}'{
"changeDate": "1s"
}{
"code": "not_found",
"message": "string",
"detail": {
"type": "string",
"value": "string",
"debug": {}
}
}Was this page helpful?