> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bbrands.io/llms.txt
> Use this file to discover all available pages before exploring further.

# DeviceCommand

> The schema definition for the DeviceCommand resource.

## Primary key

[Navigate to header](#param-commercial-activity)

document\_id

uuid

default:"Random UUID"

public

required

Unique identifier of the device command.

## Specific attributes

[Navigate to header](#param-commercial-activity)

delivered\_at

timestamp

public

Timestamp when the device command was delivered.

**Rules**: Precision: 6, with timezone

[Navigate to header](#param-commercial-activity)

executed\_at

timestamp

public

Timestamp when the device command was executed.

**Rules**: Precision: 6, with timezone

[Navigate to header](#param-commercial-activity)

expires\_at

timestamp

public

required

Timestamp when the device command was expires.

**Rules**: Precision: 6, with timezone

[Navigate to header](#param-commercial-activity)

kind

varchar

public

required

The kind of the device command.

**Rules**: Possible values: clear-local-data, clear-session, force-update, refresh-config, upload-diagnostics. Max length: 30 characters

[Navigate to header](#param-commercial-activity)

push\_notification\_id

varchar

public

The push notification ID of the device command.

**Rules**: Max length: 64 characters

[Navigate to header](#param-commercial-activity)

reason

varchar

public

required

The reason of the device command.

**Rules**: Max length: 500 characters

[Navigate to header](#param-commercial-activity)

requested\_by

uuid

public

The requested by of the device command.

[Navigate to header](#param-commercial-activity)

result

jsonb

public

The result of the device command.

[Navigate to header](#param-commercial-activity)

status

varchar

default:"pending"

public

required

The status of the device command.

**Rules**: Possible values: cancelled, delivered, executed, expired, failed, pending. Max length: 15 characters

## Foreign keys

[Navigate to header](#param-commercial-activity)

device\_installation

uuid

public

required

Reference to the Device Installation this device command belongs to. [Ref: Device Installation Schema](https://docs.bbrands.io/schemas/account/device-installation.md)

## Tracking attributes

[Navigate to header](#param-commercial-activity)

created\_at

timestamp

public

required

Timestamp when the record was created.

**Rules**: Precision: 6, with timezone

[Navigate to header](#param-commercial-activity)

deleted\_at

timestamp

public

Timestamp when the record was soft-deleted, when applicable.

**Rules**: Precision: 6, with timezone

[Navigate to header](#param-commercial-activity)

is\_actived

boolean

default:"true"

public

required

Indicates whether the record is currently active.

[Navigate to header](#param-commercial-activity)

is\_deleted

boolean

default:"false"

public

required

Indicates whether the record has been soft-deleted.

[Navigate to header](#param-commercial-activity)

updated\_at

timestamp

public

Timestamp when the record was last updated.

**Rules**: Precision: 6, with timezone


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.