URL

POST https://{api-url}/api/v2/tenants/{tenantId}/customAttributes/{attributeId}/values/{valueId}/devices

Sample URLs

https://{api-url}/api/v2/tenants/client_4/customAttributes/16/values/94/devices

https://{api-url}/api/v2/tenants/msp_246898/customAttributes/44378/values/190336/devices

Status code

200 OK

Sample 1

Sample 1 request

[{
		"id": "99de8eed-184b-4687-bbbb-6d06771f33ee"
	},
	{
		"id": "d69b7c66-f827-4c1a-8399-f059cfb9cfc7"
	}
]

Sample 1 response

{
	"failedEntities": {},
	"failedCount": 0,
	"successCount": 2
}

Sample 2

Sample 2 request

[{
		"id": "NRC-99de8eed-184b-4687-bbbb-6d06771f33ee",
                "entitytype":"NON_MON_RESOURCES"
	},
	{
		"id": "d69b7c66-f827-4c1a-8399-f059cfb9cfc7",
                "entitytype":"RESOURCE"
	}
]

Sample 2 response

{
	"failedEntities": {},
	"failedCount": 0,
	"successCount": 2
}

Sample 3

Sample 3 request

[{
		"id": "NRC-274728748d-184b-4687-iuei-6d06771f33ee",
                "entitytype":"NON_MON_RESOURCES"
	},
	{
		"id": "u1i3iui1u-f827-4c1a-9808-f059cfb9cfc7",
                "entitytype":"RESOURCE"
	}
]

Sample 3 response

This response is a failed response.

{
	"failedEntities": {
                           "NRC-99de8eed-184b-4687-bbbb-6d06771f33ee" : "Invalid resource id for client : 4",
                           "d69b7c66-f827-4c1a-8399-f059cfb9cfc7" : "Invalid resource id for client : 4"
        },
	"failedCount": 2
	"successCount": 0
}

Sample 4

Sample 4 request

[
    {
        "id" : "671fc5fb-8a75-401d-9367-4f1bfe5e8d42"
    }
] 

Sample 4 response

{
	"failedEntities" : {},
	"failedCount" : 0,
	"successCount" : 1
}