Reference Guide

SupportAssist Enterprise
46 REST API Guide SupportAssist Enterprise
2.8 Assign Credential Profile to devices
Assigning Credential Profile to devices is an asynchronous operation. Therefore, after the Credential Profile is
assigned, the job details are available. You can check the status of the job using the operation status API.
https://<BASE_URI>/ SupportAssist/api/v1/Device/AssignProfile/<CredentialProfile_Id>
Method: POST
Headers:
Content-Type: application/json
Authorization: Bearer <Authentication_Token>
The following is an example of a JSON for assigning a credential profile to devices.
[
{"id": "<Device_id>"},
{"id": "<Device_id>"}
]
Response format (success response code 202):
{
"operationId": "<operation_id>",
"operationType": "AssignDevicesToProfile",
"status": "QUEUED",
"additionalInfo": null
}
After querying the job status for assigning credential profiles, the result would be as follows:
{
"operationId": "<operation_id>",
"operationType": "AssignDevicesToProfile",
"status": "SUCCESS",
"additionalInfo": [
{
"failedDevices": "0",
"rejectedDevices": "0",
"totalNumberOfDevices": "1",
"successDevices": "1"
}
]
}