Skip to main content
PATCH
Update an equipment order intent
Key: Write Scope: Company

Authorizations

Authorization
string
header
required

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

Path Parameters

intentId
string
required

Body

application/json
order
object | null

Catalog order to place on execute, replaced whole on update. Omit or send null when nothing is purchased.

assignedFromInventory
object | null

Devices and accessories taken from existing stock and handed over to the employee on execute.

automaticEnrollment
boolean

Send the employee the MDM enrollment request on execute. Defaults to false.

sendToPersonalEmail
boolean

Send that enrollment request to the personal email. Defaults to false.

Response

default - application/json
id
string
required

Intent id — pass it to updateEquipmentOrderIntent and executeEquipmentOrderIntent

taskId
string | null
required

The EQUIPMENT_ORDER task that tracks this order

ticketId
string | null
required

The ticket holding that task: the parentTicketId sent, or the one Primo opened. Null if it could not be read back.

employeeId
string | null
required
order
object | null
required
assignedFromInventory
object | null
required
automaticEnrollment
boolean
required
sendToPersonalEmail
boolean
required
orderId
string | null
required

The order placed on execute, null until then or when nothing was bought

executedAt
string<date-time> | null
required

When the intent was executed; null while it can still change

Pattern: ^(?:(?:\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))$
createdAt
string<date-time>
required
Pattern: ^(?:(?:\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))$
updatedAt
string<date-time>
required
Pattern: ^(?:(?:\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))$