API

DeviceScheduledCheckIn

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /api/v1/organizations/{organization_id}/devices/{device_registration_id}/scheduled_check_ins create Scheduled check-in setting saved

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

created, err := client.DeviceScheduledCheckIn(nil).Create(map[string]any{"device_id": "example", "organization_id": "example", "enabled": true}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)

Lua

Construct client as shown in the Lua setup, then call the operations:

local created, err = client:DeviceScheduledCheckIn():create({ device_id = "example", organization_id = "example", enabled = true })

PHP

Construct client as shown in the PHP setup, then call the operations:

$created = $client->DeviceScheduledCheckIn()->create(["device_id" => "example", "organization_id" => "example", "enabled" => true]);

Python

Construct client as shown in the Python setup, then call the operations:

created = client.DeviceScheduledCheckIn().create({ "device_id": "example", "organization_id": "example", "enabled": True })

Ruby

Construct client as shown in the Ruby setup, then call the operations:

created = client.DeviceScheduledCheckIn.create({ "device_id" => "example", "organization_id" => "example", "enabled" => true })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const created = await client.DeviceScheduledCheckIn().create({ device_id: "example", organization_id: "example", enabled: true })

Fields

Field Type Required Description
enabled boolean Yes Enabled

create

POST /api/v1/organizations/{organization_id}/devices/{device_registration_id}/scheduled_check_ins

Operation ID: deviceScheduledCheckInsUpdate.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
device_registration_id path string Yes

Request body

application/json

Property Type Required Description
enabled boolean Yes

Responses

204: Scheduled check-in setting saved
400: Request rejected or enrollment unavailable

application/json

Property Type Required Description
details array of string No
error string Yes
field_errors object No
401: Request rejected or enrollment unavailable

application/json

Property Type Required Description
details array of string No
error string Yes
field_errors object No
403: Request rejected or enrollment unavailable

application/json

Property Type Required Description
details array of string No
error string Yes
field_errors object No
404: Request rejected or enrollment unavailable

application/json

Property Type Required Description
details array of string No
error string Yes
field_errors object No
409: Request rejected or enrollment unavailable

application/json

Property Type Required Description
details array of string No
error string Yes
field_errors object No
422: Request rejected or enrollment unavailable

application/json

Property Type Required Description
details array of string No
error string Yes
field_errors object No
503: Request rejected or enrollment unavailable

application/json

Property Type Required Description
details array of string No
error string Yes
field_errors object No