AirframeDocs

Run commands

POST/v1/outputs/{id}/commands

Send an API key as a bearer token.

Runs a batch of commands on an output, in order. They all run under one revision, and all or nothing: if one can't run, nothing changes on air.

Path parameters

idstringRequired
The output's id. It's the last part of the output's browser source URL.

Body

commandsCommand[]Required
1 to 100 commands: in, out, update, invoke or timer.

Response

revisioninteger
The output's revision after the batch. It goes up with every change, so you can tell which state came after which.

Errors

StatusCodeWhen
400invalid_requestA command isn't one of the shapes above, or the batch is empty or over 100.
403forbiddenThe key doesn't control this output.
404not_foundNo such output.
422command_failedA command couldn't run. index says which. Nothing changed.
429rate_limitedToo many batches from this key. Retry after Retry-After seconds.