post
https://hub.xyte.io/core/v1/organization/devices//commands
Retrieve a list of incidents for the organization.
Authorization
This endpoint requires Authorization.
Request
JSON Object containing the following parameters:
| Key | Type | Required | Description |
|---|---|---|---|
| name | string | This or friendly_name | |
| friendly_name | string | This or name | |
| file_id | string | No | Unique ID of a file to attach to the command |
| extra_params | object | No | Parameters to pass to the command |
Response
Return an array of all commands matching the query, with each having the following information:
| Key | Type | Description |
|---|---|---|
| id | string | Unique identifier of the command. |
| status | string | "pending" |
| name | string | Command name |
| friendly_name | string | Customer facing friendly command name |
| params | object | Optional command parameters |
| message | string | Message returned by the device |
| device_id | string | Unique identifier of the device. |
| created_at | string | Date and time when the command was created in ISO 8601 format (e.g., "2024-07-17T07:09:26Z"). |
| scheduled_at | string | Date and time when the command was scheduled to run in ISO 8601 format (e.g., "2024-07-17T07:10:27Z"). |
| issuer_name | string | Name of the user scheduling the command (if available) |
