curl --request PATCH \
--url https://api.getprimo.com/devices/{deviceId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ownerId": "<string>"
}
'{
"id": "<string>",
"tags": [
"<string>"
],
"isEnrolled": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"ownerId": "<string>",
"name": "<string>",
"serialNumber": "<string>",
"computerName": "<string>",
"type": "LAPTOP",
"platform": "ANDROID",
"brand": "<string>",
"manufacturer": "<string>",
"modelName": "<string>",
"modelIdentifier": "<string>",
"year": 123,
"osVersion": "<string>",
"osName": "<string>",
"buildVersion": "<string>",
"enrolledAt": "2023-11-07T05:31:56Z",
"disenrolledAt": "2023-11-07T05:31:56Z",
"lockWipeStatus": "LOCKED",
"edrProvider": "SENTINELONE"
}Update the device for the given device ID. Currently supports updating the device assignee (ownerId).
curl --request PATCH \
--url https://api.getprimo.com/devices/{deviceId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ownerId": "<string>"
}
'{
"id": "<string>",
"tags": [
"<string>"
],
"isEnrolled": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"ownerId": "<string>",
"name": "<string>",
"serialNumber": "<string>",
"computerName": "<string>",
"type": "LAPTOP",
"platform": "ANDROID",
"brand": "<string>",
"manufacturer": "<string>",
"modelName": "<string>",
"modelIdentifier": "<string>",
"year": 123,
"osVersion": "<string>",
"osName": "<string>",
"buildVersion": "<string>",
"enrolledAt": "2023-11-07T05:31:56Z",
"disenrolledAt": "2023-11-07T05:31:56Z",
"lockWipeStatus": "LOCKED",
"edrProvider": "SENTINELONE"
}Use your Primo API key in the Authorization header as Bearer <API_KEY>.
ID of the employee to assign this device to, or null to unassign
^[a-f\d]{24}$^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$The ID of the employee assigned to this device
Deprecated — use name instead. This field will be removed on 2026-04-13.
LAPTOP, TABLET, SMARTPHONE ANDROID, IOS, MACOS, WINDOWS, LINUX, CHROME_OS, IPADOS, UNKNOWN ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$Current lock/wipe status of the device. LOCKING/LOCKED for lock operations, UNLOCKING for unlock in progress, WIPING/WIPED for wipe operations. Null when device is in normal state.
LOCKED, LOCKING, UNLOCKING, WIPED, WIPING EDR provider protecting the device: SENTINELONE, THREATDOWN, or null when no EDR (e.g. no EDR configured, or device not yet protected).
SENTINELONE, THREATDOWN Was this page helpful?