Skip to main content

DeviceProvisioningRecipeCreated

Emitted when a new provisioning recipe is created for a device.

Payload​

FieldTypeRequiredDescription
ownerobject✅Ownership envelope identifying the company or organization that owns this event.
owner.ownershipType"organization" (literal)✅Discriminator for the ownership envelope; always organization for these events.
owner.organizationUidstring✅UID of the organization that owns the event.
owner.parentCompanyUidstring✅UID of the owning organization's parent company.
type"Device.ProvisioningRecipeCreated" (literal)✅Fully-qualified event type discriminator (e.g. Device.DeviceConnectionAdded).
originatorobject—Actor that initiated the action behind this event. Omitted for system-triggered events.
originator.accountIdnumber—Numeric identifier of the account that initiated the action.
originator.organizationUidstring—Organization on whose behalf the action was initiated.
originator.policyUidstring—Policy under which the action was initiated, if applicable.
uidstring✅Unique identifier of the entity.
organizationUidstring✅Organization that owns this provisioning recipe.
status"Pending" | "Applied" | "Failed" | "Invalid" (literal)✅Current provisioning status of the recipe.
confirmedOwnershipboolean—Whether device ownership has been confirmed for this recipe.
serialNumberstring—Serial number of the device this recipe provisions.
macAddressstring—MAC address of the device this recipe provisions.
modelstring—Model of the device this recipe provisions.
brandstring✅Brand (manufacturer) of the device this recipe provisions.
tagUidsstring[]—Tags to assign to the device once provisioned.
deviceNamestring—Human-readable name to set on the device once provisioned.
policyUidstring—Policy to apply to the device once provisioned.
locationUidstring—Location to assign the device to once provisioned.
unsuccessfulRegisterAttemptStatusobject—Details of the most recent unsuccessful registration attempt, if any.
unsuccessfulRegisterAttemptStatus.warningMessagestring✅Human-readable reason the registration attempt did not succeed.
errorMessagestring—Error message describing why provisioning failed, if applicable.

Example​

{
"id": "string",
"kind": "domain",
"type": "Device.ProvisioningRecipeCreated",
"payload": {
"owner": {
"ownershipType": "organization",
"organizationUid": "f32a128cxxxxxxxxxxxxxxxxb175739b",
"parentCompanyUid": "9a52dc0axxxxxxxxxxxxxxxx92acfccc"
},
"type": "Device.ProvisioningRecipeCreated",
"originator": {
"accountId": 2437,
"organizationUid": "8d34290dxxxxxxxxxxxxxxxx57a00ace",
"policyUid": "2edbe5c9xxxxxxxxxxxxxxxxe3aaca98"
},
"uid": "14e70f5cxxxxxxxxxxxxxxxx7620ccaf",
"organizationUid": "624c9c67xxxxxxxxxxxxxxxxad7cd727",
"status": "Pending",
"confirmedOwnership": true,
"serialNumber": "SN-749771",
"macAddress": "29:9F:66:C8:XX:XX",
"model": "example-model",
"brand": "example-model",
"tagUids": [
"87e46004xxxxxxxxxxxxxxxx4bea2712"
],
"deviceName": "Example Name",
"policyUid": "2ca49d20xxxxxxxxxxxxxxxx56c01137",
"locationUid": "b7cb61bfxxxxxxxxxxxxxxxxd468d313",
"unsuccessfulRegisterAttemptStatus": {
"warningMessage": "Something went wrong"
},
"errorMessage": "Something went wrong"
}
}

Shape​

{
"id": "string",
"kind": "domain",
"type": "Device.ProvisioningRecipeCreated",
"payload": {
"owner": {
"ownershipType": "organization",
"organizationUid": "string",
"parentCompanyUid": "string"
},
"type": "Device.ProvisioningRecipeCreated",
"originator?": {
"accountId?": "number",
"organizationUid?": "string",
"policyUid?": "string"
},
"uid": "string",
"organizationUid": "string",
"status": "Pending | Applied | Failed | Invalid",
"confirmedOwnership?": "boolean",
"serialNumber?": "string",
"macAddress?": "string",
"model?": "string",
"brand": "string",
"tagUids?": [
"string"
],
"deviceName?": "string",
"policyUid?": "string",
"locationUid?": "string",
"unsuccessfulRegisterAttemptStatus?": {
"warningMessage": "string"
},
"errorMessage?": "string"
}
}