Set Target

GET /sequence/set-target

Set the target of any one of the active target containers in the sequence

Query parameters

  • name string Required

    The target name

  • ra number(double) Required

    The RA coordinate in degrees

  • dec number(double) Required

    The DEC coordinate in degrees

  • rotation number(double) Required

    The target rotation

  • index integer Required

    The index of the target container to update

    Minimum value is 0.

Responses

  • 200 application/json

    Successful response

    Hide response attributes Show response attributes object
    • Response string
    • Error string
    • StatusCode integer
    • Success boolean
    • Type string
  • 400 application/json

    Invalid target index

    Hide response attributes Show response attributes object
    • Response string
    • Error string
    • StatusCode integer
    • Success boolean
    • Type string
  • 409 application/json

    Sequencer not initialized

    Hide response attributes Show response attributes object
    • Response string
    • Error string
    • 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/set-target
curl \
 --request GET 'http://localhost:1888/v2/api/sequence/set-target?name=Orion&ra=42.0&dec=42.0&rotation=42.0&index=42'
Response examples (200)
{
  "Response": "Target updated",
  "Error": "string",
  "StatusCode": 200,
  "Success": true,
  "Type": "API"
}
Response examples (400)
{
  "Response": "string",
  "Error": "Index out of range",
  "StatusCode": 400,
  "Success": false,
  "Type": "API"
}
Response examples (409)
{
  "Response": "string",
  "Error": "Sequencer not initializedd",
  "StatusCode": 409,
  "Success": false,
  "Type": "API"
}
Response examples (500)
{
  "Response": "string",
  "Error": "Unknown error",
  "StatusCode": 500,
  "Success": false,
  "Type": "API"
}