Skip to main content

@dialstack/sdk-dev / js/src / UpdateDeviceRequest

Interface: UpdateDeviceRequest

Defined in: sdk/js/src/types/device.ts:363

Request payload for POST /v1/devices/{id}. Tri-state fields (name, location_id, base_id) accept three values: omit to leave unchanged, a string to set, or explicit JSON null to clear.

Properties​

base?​

TypeScript
optional base?: string | null;

Defined in: sdk/js/src/types/device.ts:392

Tri-state parent base. dect_handset only — repair to a different base (string) or unpair (null).


base_id?​

TypeScript
optional base_id?: string | null;

Defined in: sdk/js/src/types/device.ts:394

Deprecated​

Use base. Retained for backwards compatibility.


button_template?​

TypeScript
optional button_template?: string | null;

Defined in: sdk/js/src/types/device.ts:385

Tri-state programmable-key template binding.


button_template_id?​

TypeScript
optional button_template_id?: string | null;

Defined in: sdk/js/src/types/device.ts:387

Deprecated​

Use button_template. Retained for backwards compatibility.


ipei?​

TypeScript
optional ipei?: string;

Defined in: sdk/js/src/types/device.ts:371

Handset IPEI. dect_handset only.


location?​

TypeScript
optional location?: string | null;

Defined in: sdk/js/src/types/device.ts:381

Tri-state dispatch location. deskphone and dect_base only.


location_id?​

TypeScript
optional location_id?: string | null;

Defined in: sdk/js/src/types/device.ts:383

Deprecated​

Use location. Retained for backwards compatibility.


model?​

TypeScript
optional model?: string;

Defined in: sdk/js/src/types/device.ts:365

Device model.


name?​

TypeScript
optional name?: string | null;

Defined in: sdk/js/src/types/device.ts:373

Tri-state human-friendly label.


overrides?​

TypeScript
optional overrides?: DeviceSettings;

Defined in: sdk/js/src/types/device.ts:369

Device-specific settings overrides.


serial_number?​

TypeScript
optional serial_number?: string | null;

Defined in: sdk/js/src/types/device.ts:379

Manufacturer serial number (1-64 letters, digits, or dashes; surrounding whitespace is trimmed). deskphone and dect_base only. Send null or an empty string to clear.


status?​

TypeScript
optional status?: DeviceStatus;

Defined in: sdk/js/src/types/device.ts:367

Device status.