updateRole

put

/ccadmin/v1/roles/{id}

Update Role. Updates a given role by ID.

Request

Supported Media Types
Query Parameters
Body ()
Root Schema : updateRole_request
Type: object
Show Source
Nested Schema : accessRights
Type: array
Access rights to assign to role
Show Source
Nested Schema : relativeTo
Type: object
Read Only: true
Related organization for organizationRole
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : getRole_response
Type: object
Show Source
Nested Schema : accessRights
Type: array
Access rights assigned to role
Show Source
Nested Schema : relativeTo
Type: object
Related organization for organizationRole
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
{
    "name":"SuperAdmininistrator",
    "repositoryId":"superAdmininistratorRole",
    "description":"Super Admininistrator Role",
    "accessRights":[
        {
            "name":"Sensitive Data",
            "repositoryId":"sensitiveData",
            "description":"Access to sensitive data"
        },
        {
            "name":"Very Sensitive Data",
            "repositoryId":"verySensitiveData",
            "description":"Access to very sensitive data"
        }
    ],
    "type":"role"
}

Default Response

The error response
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top