Complete Sequence

GET /sequence/state

Get sequence as json. For this to work, there needs to be a deep sky object container present and the sequencer view has to be initalized! This is similar to the json endpoint, however the returned sequence is much more elaborate and also supports plugins. The returned json from /json is not directly compatible with this endpoint. Use this endpoint (not json!) as reference for sequence editing! In general however I recommend using the json endpoint as it gives more reliable results, so use this if you do not need the extra functionality.

Responses

  • 200 application/json

    Successful response, best to try it out yourself

    Hide response attributes Show response attributes object
    • Response array[object]
      One of:
      Hide attributes Show attributes
      • Conditions array
      • Items array

        Contains sequence instructions as well as containers

      • Triggers array
      • Status string
      • Name string
    • Error string
    • StatusCode integer
    • Success boolean
    • Type string
  • 409 application/json

    Sequencer not initialized / No DSO container found

    Hide response attributes Show response attributes object
    • Response string
    • Error string

      Values are Sequencer not initialized or No DSO container found.

    • StatusCode integer
    • Success boolean
    • Type string
  • 500 application/json

    Internal server error, Unknown error

    Hide response attributes Show response attributes object
    • Response string
    • Error string
    • StatusCode integer
    • Success boolean
    • Type string
GET /sequence/state
curl \
 --request GET 'http://localhost:1888/v2/api/sequence/state'
Response examples (200)
{
  "Response": [
    {
      "Conditions": [],
      "Items": [],
      "Triggers": [],
      "Status": "string",
      "Name": "string"
    }
  ],
  "Error": "string",
  "StatusCode": 200,
  "Success": true,
  "Type": "API"
}
Response examples (409)
{
  "Response": "string",
  "Error": "Sequencer not initialized",
  "StatusCode": 409,
  "Success": false,
  "Type": "API"
}
Response examples (500)
{
  "Response": "string",
  "Error": "Unknown error",
  "StatusCode": 500,
  "Success": false,
  "Type": "API"
}