Update Roles To Entity
Overwrites the set of roles held by the entity identified by binding-id with the
roles provided in the request body. This is a full replacement, not a merge - any
role currently held but omitted from the request is removed.
The id of the role binding to update, as returned by GET /iam/role-bindings.
{
"entity_name": "[email protected]",
"user_type": "REMOTE_USER",
"roles": [
{
"role": "SUPPORT_BUNDLE_COLLECTOR"
},
{
"role": "AUDITOR"
}
],
"_revision": 3
}
The role binding was updated successfully.
{
"_create_user": "string",
"_create_time": 0,
"_last_modified_user": "string",
"_last_modified_time": 0,
"_revision": 0,
"_resource_type": "string",
"_system_owned": false,
"id": "string",
"display_name": "string",
"description": "string",
"site_ids": [
"string"
],
"entity_name": "string",
"user_type": "string",
"roles": [
{
"role": "string",
"display_name": "string"
}
]
}
Bad Request
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Unauthorized
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Forbidden
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
The role binding was modified by another request since it was last read. Re-fetch
the binding via GET /iam/role-bindings/{binding-id} and retry with its current state.
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Precondition Failed
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Precondition Required
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Too Many Requests
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
4XX and 5XX type errors with appropriate message
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"entity_name":"string","roles":["object"]}' https://{api_host}/sspi/iam/role-bindings/{binding-id}