Skip to navigation

Halt the organisation's algos

Stops every started instance of your organisation, in id order, then answers with how many were stopped (algos:manage) — count is 0 when nothing was started, so the call always has an answer. Each instance’s stop is its own change, read on its row.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Headers

Idempotency-KeystringRequired

Required on every write: a URL-safe string of 1 to 64 characters from [A-Za-z0-9._~-] (a UUID fits), scoped to you. It names one operation on one record, ever: a retry replays the stored outcome (Idempotent-Replay: true) or attaches to the live one, and reuse on another record refuses 409 IDEMPOTENCY_KEY_REUSED. Missing or malformed, 400.

X-Request-IdstringOptional

Your own id for the request: 8 to 128 of [A-Za-z0-9._-]. It becomes the request’s id and is echoed on the response. A value off that grammar is replaced with a fresh id, never refused.

Query parameters

minGlobalSequencestringOptionalformat: "^[0-9]{1,19}$"

A position you hold — an X-Immix-Global-Sequence you read, or a 202’s commandGlobalSequence: this member answers only once it has folded the platform’s stream through it, waiting up to its deadline, then 503 PROJECTION_BEHIND with Retry-After. Within that stream a read is never older than what you have seen; drop your positions after an announced stream cut. A retry stating its 202’s position attaches to or replays that operation while the journal holds its key, never publishing twice. Stated once: one to nineteen digits, at most 9223372036854775807; else 400 MALFORMED_REQUEST.

Request

This endpoint expects an object.
remarkstringOptional

Why — at most 256 bytes of UTF-8; empty when none is given. Optional in this body: absent or null reads as "" — no remark.

Response

The halt as the platform recorded it: count started instances stopped (0 when none was), with the answering change’s position and, on a replayed key, Idempotent-Replay.

actorobject

The principal who halted — a member or an API key. an actor: an object {kind, id}

commandKeystring
The halt's idempotency key, echoed for correlation.
countinteger
How many started instances were stopped.
globalSequencestringformat: "^[0-9]+$"

The position as a decimal string — the last change this member had applied, orders, balance readings and algo instances included.

haltedAtNsstringformat: "^-?[0-9]+$"
When the halt took effect, epoch nanoseconds. int64 as a decimal JSON string
orgIdinteger
The halted organisation.
remarkstring

The halting user’s remark; empty when none was given.

Errors

400
Halt Algos Request Bad Request Error
401
Halt Algos Request Unauthorized Error
403
Halt Algos Request Forbidden Error
409
Halt Algos Request Conflict Error
413
Halt Algos Request Content Too Large Error
422
Halt Algos Request Unprocessable Entity Error
429
Halt Algos Request Too Many Requests Error
500
Halt Algos Request Internal Server Error
503
Halt Algos Request Service Unavailable Error