Skip to content

`POST /api/commands/{word}/resolve` — step the resolver state machine for `word` with the supplied partial args. Returns `ready` (the resolved invocation), `need_param` (the next param + its options), or `invalid` (a bad value + a hint). An unknown OR role-hidden word is a 404.

POST
/api/commands/{word}/resolve
curl --request POST \
--url https://example.com/api/commands/example/resolve \
--header 'Content-Type: application/json' \
--cookie supacloud_session=<supacloud_session> \
--data '{ "args": { "additionalProperty": "example" }, "client_timezone": "example" }'

POST /api/commands/{word}/resolve — step the resolver state machine for word with the supplied partial args. Returns ready (the resolved invocation), need_param (the next param + its options), or invalid (a bad value + a hint). An unknown OR role-hidden word is a 404.

word
required
string

Command word or alias

Media typeapplication/json

The body of POST /api/commands/{word}/resolve and .../invoke: the partial arg bindings supplied so far (param name -> value). Absent = a bare invocation; the resolver/invoker fills in / asks for the rest.

object
args

Partial argument bindings keyed by param name.

object
key
additional properties
string
client_timezone

AUD-WIR-037 / SCG-137 — the caller’s IANA timezone (e.g. Europe/Berlin), sent by the web terminal from the browser. Not a command param: it rides beside args, so the descriptors and the positional binders stay unchanged. invoke hands it to the dispatched command (schedule add reads its times in it); an unparseable or absent zone means UTC. Ignored by resolve.

string | null

Example generated

{
"args": {
"additionalProperty": "example"
},
"client_timezone": "example"
}

OK

Media typeapplication/json

The POST /api/commands/{word}/resolve body — one of ready | need_param | invalid (the resolver state machine, ADR §2.2).

One of:

Every required param is bound + valid; input is the resolved invocation.

object
input
required

A replayable command invocation (ADR §2.2): word + resolved arg bindings.

object
args
required

Resolved arg bindings (param name -> chosen value).

object
key
additional properties
string
word
required
string
status
required
string
Allowed values: ready

Example

{
"status": "ready"
}

Authentication required

Permission denied

No such command

Structured server error