Documentation is now available for the Fall 2020 Update release!

Assign agent profile for resources

This endpoint is used to assign an agent profile for resources.

Leave Feedback

URL

POST https://{api-url}/api/v2/tenants/{tenantId}/agentProfiles/{profileId}/devices

Sample URLs

https://{api-url}/api/v2/tenants/client_5/agentProfiles/10/devices

Status code

200 OK

Sample request

[
{
		"id": "042761ba-542e-4a7a-8e38-3ebbea7eeb16"
	},
	{
		"id": "023471da-698b-3a2e-1e93-6dbaca8eea23"
	},
	{
		"id": "855eb82e-3064-40a1-a26e-77efabe300da"
	}
]

Sample response

{
	"failedEntities": {
		"023471da-698b-3a2e-1e93-6dbaca8eea23": "No device 023471da-698b-3a2e-1e93-6dbaca8eea23 found under client client_5"
	},
	"failedCount": 1,
	"successCount": 2
}