/mcpExample 1: Adding the roles The following is an example of the POST request that can be used to add the roles: PUT https://<connection-server>/vmrest/usertemplates/<usertemplateobjectid>/usertemplateroles Request Body: <UserTemplateRole> <RoleObjectId>4f077e4e-61c7-4ce8-a58a-2c4bc6089319</RoleObjectId> </UserTemplateRole> 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 JSON Example To add the roles, do the following: Request URI: POST https://<connection-server>/vmrest/usertemplates/<usertemplateobjectid>/usertemplateroles Accept: application/json Content_type: application/json Connection: keep_alive Request Body: { "RoleObjectId":"04d0f1ef-a8c6-454a-8cf0-0e8db7bb2b15" } 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 Example 2: Viewing roles of user template The following is an example of the GET request that can be used to view the roles: GET https://<connection-server>/vmrest/usertemplates/<usertemplateobjectid>/usertemplateroles The following is the response from the above GET request and the actual response will depend upon the information given by you: <UserTemplateRole> <URI>/vmrest/usertemplates/d8054a3a-6c09-4a25-9880- 6589d2f1dc85/usertemplateroles/973e143e-af15-4ef4-a7c1-5fafd9cc53d4</URI> <ObjectId>973e143e-af15-4ef4-a7c1-5fafd9cc53d4</ObjectId> <UserObjectId>d8054a3a-6c09-4a25-9880-6589d2f1dc85</UserObjectId> <UserURI>/vmrest/users/d8054a3a-6c09-4a25-9880-6589d2f1dc85</UserURI> <RoleObjectId>ba166947-41e8-4ec9-ad14-03658d91240e</RoleObjectId> <RoleURI>/vmrest/roles/ba166947-41e8-4ec9-ad14-03658d91240e</RoleURI> <RoleName>Audit Administrator</RoleName> <Alias>ABCD_user template</Alias> </UserTemplateRole> Response Code: 200 JSON Example Cisco Unity Connection Provisioning Interface (CUPI) API 324 Cisco Unity Connection Provisioning Interface (CUPI) API for User Template Adding or Deleting Roles