Skip to main content
POST
Set device custom field values in batch
Key: Write Scope: Company

Authorizations

Authorization
string
header
required

Use your Primo API key in the Authorization header as Bearer <API_KEY>.

Body

application/json
items
object[]
required

Custom field value writes to apply. Each item targets one (deviceId, customFieldId) pair, which must be unique within the batch. Up to 100 items per call. Writes are best-effort: inspect the per-item results to learn which succeeded — the HTTP status is 200 even when some items fail.

Required array length: 1 - 100 elements

Response

default - application/json
successCount
integer
required

Number of items written successfully.

Required range: -9007199254740991 <= x <= 9007199254740991
failureCount
integer
required

Number of items that failed.

Required range: -9007199254740991 <= x <= 9007199254740991
results
object[]
required

Per-item outcome, in the same order as the input items.