McDewey

Multi-vendor documentation library · semantic search · MCP endpoint at /mcp

Page 703

↗ View in doc context
page
703
source
unity-connection/rest-api/cupi/cupi.md
chunk_id
unity-connection::rest-api::cupi::cupi::667

<Role> <RoleName>Custom Role New</RoleName> <RoleDescription>Administers call handlers, directory handlers and interview handlers</RoleDescription> <AssignPrivileges> <PrivilegeObjectId>0db37044-b459-4784-a82c-fea1ddb35b73</PrivilegeObjectId> <PrivilegeObjectId>0d20ccc4-2694-4762-bfaa-649871fd0e99</PrivilegeObjectId> </AssignPrivileges> </Role> The following is the response from the above POST request and the actual response will depend upon the information given by you: Response Code: 201 /vmrest/customroles/9166f041-aec4-4e5a-9600-6cc27ef99ec7 Modifying Custom Role The following is an example of the PUT request that modifies the Custom Roles. https://<connection_server>/vmrest/customroles/<objectId> Request body • When Inherit System Role is Modified <Role> <AssignPrivileges> <PrivilegeObjectId>0db37044-b459-4784-a82c-fea1ddb35b73</PrivilegeObjectId> <PrivilegeObjectId>0d20ccc4-2694-4762-bfaa-649871fd0e99</PrivilegeObjectId> </AssignPrivileges> <InheritedObjectId>61a3d5bd-74a0-40e4-a770-f927faa52bb3</InheritedObjectId> </Role> • When Privileges are Modified (Assigned or Removed) <Role> <AssignPrivileges> <PrivilegeObjectId>0db37044-b459-4784-a82c-fea1ddb35b73</PrivilegeObjectId> <PrivilegeObjectId>0d20ccc4-2694-4762-bfaa-649871fd0e99</PrivilegeObjectId> </AssignPrivileges> <RemovePrivileges> <PrivilegeObjectId>93c8c92f-a6c7-4458-bbde-1b28dcc5adc6</PrivilegeObjectId> </RemovePrivileges> </Role> Response code: 201 Listing Privileges for Roles Using this API you can get all the privileges of System and Custom roles. The following is an example of the GET request that lists all the privileges of roles: https://<connection-server>/vmrest/roles/<object_id>/privileges Cisco Unity Connection Provisioning Interface (CUPI) API 671 Cisco Unity Connection Provisioning Interface (CUPI) API for System Settings Modifying Custom Role