The runner's results for actions it carried out
POST
/api/v1/actions/report
const url = 'https://deck.example.com/api/v1/actions/report';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '[{"action_id":1,"outcome":null,"result":"done"}]'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://deck.example.com/api/v1/actions/report \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '[ { "action_id": 1, "outcome": null, "result": "done" } ]'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
Array<object>
One action’s result, for quietdeck action done|fail and quietdeck actions report.
One of:
object
action_id
required
integer format: int64
outcome
What was sent and what came back.
result
required
string
object
action_id
required
integer format: int64
error
required
string
result
required
string
Responses
Section titled “Responses”Media typeapplication/json
Array<object>
One action’s report from quietdeck actions report, as the deck took it.
object
action_id
required
integer format: int64
error
Why the deck refused this one; absent when it was recorded.
string | null
Example generated
[ { "action_id": 1, "error": "example" }]default
Section titled “default”An error, with its message.
Media typeapplication/json
Every error the REST API returns, with an HTTP status.
object
error
required
string
Example generated
{ "error": "example"}