Register or re-register a station
POST/stations
Creates a station with the given capability set, or — if stationId already exists — replaces its capability set (e.g. recertifying a station for a new capability). This is deliberately idempotent by client-supplied id: re-registering the same stationId upserts rather than erroring or duplicating, which is what closes the pull-dispatch gap for HTTP-only smoke testing (without this endpoint there is no way to create a station over HTTP, so task-claims against a freshly started server always 404s).
Request
Responses
- 201
- 400
- 409
- 422
- 500
Station registered (or its capability set updated).
Response Headers
Present, with the value true, ONLY when this answer is the stored replay of an earlier request that used the same Idempotency-Key (the handler did not run again). The first execution never carries it.
Path of the registered station, e.g. /stations/{id}.
The Idempotency-Key header is missing (idempotency-key-required) or not 1-128 printable ASCII characters (idempotency-key-invalid) on a POST, or the request body could not be read or contains a NUL character (malformed-request-body), or the request body is malformed JSON, a required field is missing or empty, or a field value is invalid (e.g. a task type outside the TaskType enum). instance is omitted: this is a bare collection-create endpoint with no path segment identifying a specific resource.
The Idempotency-Key was already used with a different method, path or body (idempotency-key-reused). Use a new key for a genuinely different request. Distinguished from a business conflict by the problem type.
The supplied locationCode is KNOWN (per facility-layout) to resolve to a role other than WorkCenter.
An unexpected server-side failure (e.g. a repository or event-publisher error).