Edit a Sequence
This works similary to profile/set-value. Note that this mainly supports fields that expect simple types like strings, numbers etc, and may not work for things like enums or objects (filter, time source, ...). This is an experimental feature, and it could have unexpected side effects or simply not work for some instructions or fields. If you encounter any bugs (except that it is not working with enums or objects), feel free to create an issue on github or contact me on the NINA discord.
Query parameters
-
path
string Required The path to the property that should be updated. Use
GlobalTriggers
,Start
,Imaging
,End
for the sequence root containers. Then use the name of the property or the index of the item in a list, seperated with-
. The example would set the exposure time of a Take Exposure instruction, contained in a DSO container, to 20s. Usesequence/state
as reference, notsequence/json
! -
value
string Required The new value
curl \
--request GET 'http://localhost:1888/v2/api/sequence/edit?path=Imaging-Items-0-Items-0-ExposureTime&value=20'
{
"Response": "Updated setting",
"Error": "string",
"StatusCode": 200,
"Success": true,
"Type": "API"
}
{
"Response": "string",
"Error": "Sequence is not initialized",
"StatusCode": 400,
"Success": false,
"Type": "API"
}
{
"Response": "string",
"Error": "Unknown error",
"StatusCode": 500,
"Success": false,
"Type": "API"
}