Endpoint
/api/v2/tenants/{tenantId}/customAttributes/{attributeId}/values/{valueId}/devices

Unassigns custom attribute from devices.

Path Parameters
tenantId
string

Describes the client ID of the tenant

attributeId
string

valueId
string

entityType
string

id
string

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

Responses

OK

failedCount
integer

failedEntities
object

successCount
integer

{
  "FailedCount": 2,
  "FailedEntities": {
    "NRC-99de8eed-184b-4687-bbbb-6d06771f33ee": "Invalid resource id for client : 4",
    "d69b7c66-f827-4c1a-8399-f059cfb9cfc7": "Invalid resource id for client : 4"
  },
  "SuccessCount": 0
}
{
  "FailedCount": 0,
  "FailedEntities": {},
  "SuccessCount": 2
}
Endpoint
/api/v2/tenants/{tenantId}/customAttributes/{attributeId}/values/{valueId}/devices

Assigns custom attributes to devices.

Path Parameters
tenantId
string

Describes the client ID of the tenant

attributeId
string

valueId
string

entitytype
string

id
string

[
  {
    "id": "99de8eed-184b-4687-bbbb-6d06771f33ee"
  },
  {
    "id": "d69b7c66-f827-4c1a-8399-f059cfb9cfc7"
  }
]
[
  {
    "entitytype": "NON_MON_RESOURCES",
    "id": "NRC-99de8eed-184b-4687-bbbb-6d06771f33ee"
  },
  {
    "entitytype": "RESOURCE",
    "id": "d69b7c66-f827-4c1a-8399-f059cfb9cfc7"
  }
]
[
  {
    "entitytype": "NON_MON_RESOURCES",
    "id": "NRC-274728748d-184b-4687-iuei-6d06771f33ee"
  },
  {
    "entitytype": "RESOURCE",
    "id": "u1i3iui1u-f827-4c1a-9808-f059cfb9cfc7"
  }
]
[
  {
    "id": "671fc5fb-8a75-401d-9367-4f1bfe5e8d42"
  }
]

Responses

OK

failedCount
integer

failedEntities
object

successCount
integer

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