Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »


GET outputs/command/start/{encoder_id}/{device_id}

Resource Information

Requires Authentication?

Yes

Response Formats

json

HTTP Methods

GET

Starts the desired encoder on a specific device in the stack, if defined.

Resource URL

http://{host}/api/2.0/outputs/command/start/{encoder_id}/{device_id}/.format

Example Request

GET 

  1. http://44.235.52.211/api/2.0/outputs/command/start/1/9011/.json

{
    "Task": {
        "id": 233046,
        "device_id": 9011,
        "type": "Toggle Encoder State",
        "type_id": 17,
        "mode": "Starting",
        "mode_id": 1,
        "status": null,
        "description": null,
        "total": 0,
        "completed": 0,
        "time_remained": 0,
        "modified": "1612535089416"
    }
}

 


 

GET outputs/command/stop/{encoder_id}

Resource Information

Requires Authentication?

Yes

Response Formats

json

HTTP Methods

GET

Stops an active encoder.

Resource URL

http://{host}/api/2.0/outputs/command/stop/{encoder_id}/.format

Parameters

Parameter

Data Type

Description

encoder_id
(required)

integer

The ID of the desired encoder.

Example Request

GET 

  1. http://44.235.52.211/api/2.0/outputs/command/stop/1/.json

{
    "Task": {
        "id": 290706,
        "device_id": 9011,
        "type": "Toggle Encoder State",
        "type_id": 17,
        "mode": "Starting",
        "mode_id": 1,
        "status": null,
        "description": null,
        "total": 0,
        "completed": 0,
        "time_remained": 0,
        "modified": "1612535003126"
    }
}

  • No labels