Skip to main content
POST
Cancel a run

Authorizations

Authorization
string
header
required

A Modus personal access token (modus_<orgUuid>_<prefix>_<secret>) or an OAuth 2.1 access token, sent as Authorization: Bearer <token>.

Path Parameters

runId
string
required

Body

application/json
organizationId
string

Organization the run belongs to. Omit for PAT/SDK callers — falls back to the authenticated principal's org.

reason
string

Human-readable reason for the cancel, logged server-side only.

lastSeenEventId
string

Redis Stream id of the last SSE frame the client rendered, so the persisted partial message matches what the client saw. Falls back to the server-side accumulator when absent.

Response

204 - undefined