/api/space/user-management/roles/{role-id}/capabilities/{capability-id}

The following operations are supported on this resource:

  • GET - Get a single capability associated with a role
  • DELETE - Unassign capability from role
GET /roles/{role-id}/capabilities/{capability-id} Version 3

Get a single capability associated with a role.

Sample Usage

GET /roles/{role-id}/capabilities/{capability-id}


  • Parameters:
    Name Type URI Type Description Required
    role-id Integer Path Role ID Y
    capability-id Integer Path Capability ID Y
  • Sample Output XML:
    <capability href="/api/space/user-management/capabilities/{capId}" uri="/api/space/user-management/roles/{role-id}/capabilities/{capability-id}">
         <id>Integer</id>
         <name>String</name>
    </capability>

  • Sample Output JSON:
    {
       "capability" : {
         "@href" : "/api/space/user-management/capabilities/{capId}" ,
         "@uri" :
         "/api/space/user-management/roles/{role-id}/capabilities/{capability-id}" ,
         "id" : "Integer" ,
         "name" : "String"
       }
    }

  • Access Control

    The following capabilities are required to access this API: ReadRole

      For the deprecated versions of this API, refer to :
    • version 1

    DELETE /roles/{role-id}/capabilities/{capability-id} Version 3

    Unassign capability from role.

    Sample Usage

    DELETE /roles/{role-id}/capabilities/{capability-id}


    • Parameters:
      Name Type URI Type Description Required
      role-id Integer Path Role ID Y
      capability-id Integer Path Capability ID Y

    Access Control

    The following capabilities are required to access this API: DeleteRole