Skip to content

sessions module route (requires sessions:work:admin)

POST
/v1/m/sessions/work-events/{event_id}/replay
curl --request POST \
--url 'https://example.com/v1/m/sessions/work-events/example/replay?mode=validate' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "plan_hash": "example" }'

Replays one dead-lettered work event as a validate, plan or apply command; a workspace-confined principal is refused because the receipt is anchored tenant-wide.

event_id
required
string

Path parameter event_id.

X-Olivares-Tenant
string format: uuid

Target tenant id; required when the principal can act in more than one tenant.

Idempotency-Key
string

UUID required when mode=apply; reuse it only for an exact retry.

If-Match
string

Strong resource ETag required when mode=apply mutates an existing resource.

If-Plan-Hash
string

SHA-256 plan hash required when mode=apply; apply must reproduce it.

mode
required
string
Allowed values: validate plan apply

Mandatory command phase. validate and plan are observational; apply revalidates and mutates.

Media type application/json

Optional outbox replay plan document. event_id is server-bound; apply uses the required If-Plan-Hash header.

object
plan_hash
string
>= 64 characters <= 64 characters
Example generated
{
"plan_hash": "example"
}

OK

Media type application/json
object
Example generated
{}

Bad request

Media type application/json
object
Example generated
{}

Unauthenticated

Media type application/json
object
Example generated
{}

Forbidden

Media type application/json
object
Example generated
{}

Not found

Media type application/json
object
Example generated
{}

Conflict / setup required

Media type application/json
object
Example generated
{}

ETag or plan precondition failed

Media type application/json
object
Example generated
{}

Domain invariant not satisfied

Media type application/json
object
Example generated
{}

Work is blocked

Media type application/json
object
Example generated
{}

Rate limited

Media type application/json
object
Example generated
{}

Required evidence, policy, clock or store is unavailable

Media type application/json
object
Example generated
{}