メインコンテンツへスキップ
Update device's meta information (assignment info and location)

承認

Authorization
string
header
必須

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

パスパラメータ

organizationId
number
必須
deviceId
number
必須

ボディ

application/json
status
enum<string>

The status of the device. If IN_STOCK status is set, the device will be unassigned and the assignment start/end date will be cleared. If DECOMMISSIONED status is set, the assignment dates will be cleared but the last assigned user will be preserved for audit purposes. System-managed statuses (e.g. processing) cannot be set through this endpoint.

利用可能なオプション:
in_stock,
pre_use,
active,
missing,
malfunction,
decommissioned,
on_order,
scheduled_for_loan,
scheduled_for_return
例:

"active"

peopleId
number | null

The people ID to assign the device to. If null, the device will be unassigned. Device that has IN_STOCK status can't be assigned to a person. For DECOMMISSIONED devices, the last assigned user is preserved for audit purposes.

例:

123

assignmentStartDate
string<date> | null

The date the device is assigned to the person. Device that has IN_STOCK or DECOMMISSIONED can't have assignment start date

例:

"2021-01-01T00:00:00.000Z"

assignmentEndDate
string<date> | null

The date the device assignment ends. Device that has IN_STOCK or DECOMMISSIONED can't have assignment end date

例:

"2021-01-02T00:00:00.000Z"

location1
string

Primary location information for the device

例:

"location1"

location2
string

Secondary location information for the device

例:

"location2"

comment
string | null

Comment or reason for the assignment/status change

例:

"Assigned to new employee"

レスポンス

id
number
必須

Unique identifier for the device

例:

123

memo
string
必須

Additional notes or memo about the device

例:

"foo bar"

type
enum<string>
必須

Type of the device (e.g., PC, Phone, Tablet)

利用可能なオプション:
pc,
phone,
other
例:

"pc"

people
object | null
必須

Person assigned to this device, or null if unassigned

identity
object | null
必須

Identity information of the assigned person, or null if unassigned

preset
object
必須

Preset fields for the device. This is a hashmap where the key maps to the field uniqueName in device fields.

例:
custom
object
必須

Custom fields for the device. This is a hashmap where the key maps to the field uniqueName in device fields. A dropdown field configured with allowMultiple returns an array of the selected display values.

例:
mdm
object
必須

MDM fields for the device, populated when the device is synced from an MDM service (e.g. Jamf, Kandji, Microsoft Intune). This is a hashmap where the key maps to the MDM field uniqueName (e.g. managed_status, compliance_status, owner_type). Devices not managed by an MDM service will have an empty object.

例:
createdAt
string<date-time>
必須

Timestamp when the device was created

例:

"2024-03-20T00:00:00.000Z"

updatedAt
string<date-time>
必須

Timestamp when the device was last updated

例:

"2024-03-20T00:00:00.000Z"

customFieldsWithMetadata
object[]
必須
read-only
例: