Device Creation
Create a device in an account using Devices API.
Inputs
- SerialNumber, Model, and Manufacturer are the mandatory fields for creating a device. The combination of these fields must be unique for a device.
- Optionally, device can be configured with SKU. The combination of SerialNumber and SKU must be unique for a device. The SKU’s validity is enforced through a weekly sync from Oracle to IAM.
- Optionally, PublicKey can be configured for devices which require Bootstrap worfklow.
Authorization
- Authorization in IAM operates within an account context. Account owners(subjects onboarded through the Onboarding process) will have comprehensive set of permissions to create, update, read and delete devices under their account.
- By default, the device will be created in the account of the calling subject, unless overriden by the ‘accountId’ query parameter, in which case the subject should have necessary permissions on the overriden account.
- All the users belonging to the account will have limited permissions to read the devices belonging to the their account.
- All devices will have limited permissions to read its own details(/devices/me using GET API)
Example Request:
POST {base URL}/devicesRequest Body
{ "serialNumber": "12345", "model": "Tablet", "manufacturer":"Trimble", "sku": "1342AM2", "publicKey":"-----BEGIN PUBLIC KEY-----\nMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAETLSvsnQYK8DKH5+zQqEwgp/ctpOy\nnQg9Px0y6cyH8KZkb0RAGE75YCuAJl1HJzuiW2FtqRJtGY49BzKSN1S2rQ==\n-----END PUBLIC KEY-----"}Success Response (201):
{ "metadata": { "createdBy": "trn:2:iam:us:user:bc475617-rd16-4d32-a25c-f360b414d587", "createdAt": "2025-04-23T18:58:50.008000Z", "updatedBy": "trn:2:iam:us:user:bc475617-rd16-4d32-a25c-f360b414d587", "updatedAt": "2025-04-23T18:58:50.008000Z" }, "serialNumber": "12345", "manufacturer": "Trimble", "model": "Tablet", "sku": "1342AM2", "publicKey":"-----BEGIN PUBLIC KEY-----\nMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAETLSvsnQYK8DKH5+zQqEwgp/ctpOy\nnQg9Px0y6cyH8KZkb0RAGE75YCuAJl1HJzuiW2FtqRJtGY49BzKSN1S2rQ==\n-----END PUBLIC KEY-----", "id": "3a10a36e-12ea-4c98-aa57-3e970bcea56c", "trn": "trn:2:iam:us:device:3a10a36e-12ea-4c98-aa57-3e970bcea56c"}