# Update command status

API to update a command status state

Endpoint: PUT /commands/v0/status/{id}/
Version: 1.0.0
Security: apiKey

## Path parameters:

  - `id` (string, required)
    ID of the command status object

## Request fields (application/json):

  - `state` (string)
    Command state to update
    Enum: "Command Acknowledged", "Command In Progress", "Command TimeOut", "Command Success", "Command Failure", "Command Scheduled", "Command Cancelled"

  - `reason` (string)
    State change reason to update

## Response 200 fields (application/json):

  - `code` (integer)

  - `message` (string)

  - `content` (object)

  - `content.id` (string)
    Unique command identifier

  - `content.request` (string)
    Request Id associated with this command

  - `content.device` (string)
    Device associated with this command

  - `content.state` (string)
    Current state of the command
    Enum: "Command Queued", "Command Initiated", "Command Acknowledged", "Command In Progress", "Command TimeOut", "Command Success", "Command Failure", "Command Scheduled", "Command Cancelled"

  - `content.reason` (string)
    details briefing the reason for current command state

  - `content.created_at` (string)
    Timestamp of command creation

  - `content.updated_at` (string)
    Last updated timestamp of command

## Response 400 fields (application/json):

  - `code` (integer, required)

  - `message` (string, required)

  - `content` (object)

## Response 401 fields (application/json):

  - `code` (integer, required)

  - `message` (string, required)

  - `content` (object)

## Response 500 fields (application/json):

  - `code` (integer, required)

  - `message` (string, required)

  - `content` (object)


