Skip to main content
PATCH
Update several devices
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

Device updates to apply. Each item targets one deviceId, which must be unique within the batch, and carries the same fields as updateDevice. 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 devices updated successfully.

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

Number of devices that failed to update.

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

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