Operating system set to macOS
Documentation jurisdiction set to United States
Sign inConnect Claude

Invoke Skill Workstream Spec Answer

post/api/v1/skills/workstream.spec.answer/invoke

Answer one open decision on a WorkStream spec. Wraps POST /api/v1/wss/authoring/workstreams/{id}/spec/answer. Answering creates a NEW version rather than mutating one β€” the prior version's spec stays unchanged. Read the spec first with workstream_spec.

Records the answer to one open decision on a workstream spec. Supply the `workstream_id`, the `decision_id` and your `answer`, and add `provenance` to note where the answer came from. The reply carries the new version holding the answer; the earlier version is left unchanged.

Request bodyapplication/json

FieldTypeDescription
workstream_idrequiredstringWorkstream whose spec to answer on β€” UUID, slug, or 7-char permakey.
decision_idrequiredstringThe stable id of the decision to answer.
answerrequiredstringThe chosen option value. Agreeing in one word ('yes') records the builder's proposal as the decision, not the affirmative word.
provenancestring | nullOptional source locator or rationale recorded with the answer.

Responses

200Skill executed successfully
FieldTypeDescription
skillrequiredstringβ€”
outputrequiredobjectThe new version carrying the answered decision.
show nested
FieldTypeDescription
stub_fieldsstring[]β€”
warningsstring[]β€”
workstream_idstringResolved workstream UUID.
versioninteger | nullThe NEW version created by the answer (prior version is unchanged).
specobject | nullThe updated spec after the answer.
spec_hashstring | nullContent address of the new spec.
definition_hashstring | nullContent address of the step graph (unchanged by an answer).
decision_idstringThe decision this call answered.
framesobject[]Cowork artefact frames rendering the answered spec.
item shape
Empty object.
errorstring | nullβ€”
error_envelopeany | nullCanonical structured error. Populated when the answer failed.
correlation_idrequiredstringβ€”
401Authentication required
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
403Insufficient permissions
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
404Skill not found
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
429Rate limit exceeded
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
5XXInternal server error
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
curl https://api.dev.arch.ie/api/v1/skills/workstream.spec.answer/invoke \
  -X POST \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{
       "workstream_id": "string",
       "decision_id": "string",
       "answer": "string",
       "provenance": null
     }'