Skip to content

Marks the run done for the caller, idempotently.

POST
/v1/m/sessions/runs/{ref}/done
curl --request POST \
--url https://example.com/v1/m/sessions/runs/example/done \
--header 'Authorization: Bearer <token>'

Marks the run done for the caller, idempotently.

ref
required
string

Path parameter ref.

X-Olivares-Tenant
string format: uuid

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

The caller’s snooze and done marks on the run

Media type application/json
object
done
required

Whether THIS caller has marked the session done; every direction is idempotent.

boolean
run_ref
required

The operated session’s stable reference.

string
snoozed_until

When THIS caller’s snooze ends; present only while it is still to end. Run list and get reads carry the same per-caller fields.

string format: date-time
Example generated
{
"done": true,
"run_ref": "example",
"snoozed_until": "2026-04-15T12:00:00Z"
}

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
{}

Rate limited

Media type application/json
object
Example generated
{}