Record a completion-aware Task Outcome

POST
/v1/work/outcomes/record

Preserve one attempt's status and checks, optionally linked to the exact accepted Handoff Receipt that the result covers.

Authorization

BearerAuth
AuthorizationBearer <token>

Static bearer token used when local Server authentication is enabled.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/work/outcomes/record" \  -H "Content-Type: application/json" \  -d '{    "scope_id": "string",    "source_id": "string",    "outcome": {      "schema": "powercontext.task-outcome.v1",      "trust": "untrusted_observation",      "objective": "string",      "status": "succeeded",      "summary": "string",      "observations": [        {          "text": "string",          "basis": "declared",          "evidence": [            {              "kind": "source",              "source_ref": {                "name": "string",                "source_id": "string"              }            }          ]        }      ],      "checks": [        {          "name": "string",          "status": "passed",          "basis": "declared",          "evidence": [            {              "kind": "source",              "source_ref": {                "name": "string",                "source_id": "string"              }            }          ]        }      ],      "produced_artifacts": [        {          "family": "string",          "artifact_id": "string",          "revision": 1        }      ],      "remaining_work": [        "string"      ]    }  }'
{  "kind": "work-contract",  "source": {    "name": "string",    "source_id": "string"  },  "position": 1,  "content_digest": "stringstringstringstringstringstringstringstringstringstringstringstrin"}