This article provides an example of how to create an MCS profile using UIMAPI calls
DX UIM 23.4.x
UIMAPI
Here are the detailed steps for creating an MCS profile using the UIM API:
API Call: 'GET /uimapi/v0/templates'
Description: Retrieve the list of SSRV2 templates available and select the desired template ID.
API Call: 'GET /uimapi/v0/templates/{mcs_template_id}/blueprint'
Parameters:
'mcs_template_id': Get the 'templateId' value of one of the list of templates obtained from step 1.
'Show hidden': Set this parameter to 'true'.
Action: Download and copy the response body from this API call.
API Call: 'POST /uimapi/deviceoperations/{identifier}/profiles'
Parameters:
'identifier': Set this to 'cs_id' of the robot on which we want to create profile.
'lookup': Set this to 'by_cs_id'.
Request Body: Use the response body obtained from step 2.
Description: Create a profile for the specified device using the template blueprint.
API Call: 'POST /uimapi/devicegroups/{mcs_grp_id}/profiles'
Parameters:
'mcs_grp_id': The ID of the group to which the profile should be added.
Request Body: Use the response body from step 2.
Description: Add the profile to the specified group using the template blueprint.
The successful response body from steps 3 or 4 will contain the profile ID created for the device/group. This profile ID can be verified in the ssrv2profile database table or by checking the respective device/group in the Operations Console.