A client-supplied id never overwrites an existing workflow
The rule
Normative: this is the rule
- A create request MAY supply the workflow's
id. - If a workflow with that id already exists, the request MUST be refused with 409 and the code
WORKFLOW_ID_TAKEN. - The stored workflow MUST be left exactly as it was.
- An implementation MUST NOT silently turn a create into an update.
What it means
A caller can name the id it wants a new workflow to have, rather than being handed one. That is a convenience with one sharp edge: an id is also how an existing workflow is addressed, so a create request naming an id already in use is ambiguous between "make this" and "replace that". The rule resolves the ambiguity in one direction only — it is never an update. The incumbent workflow is left exactly as it was, and the request that collided is refused.
Example
The same id, sent as a create twice.
POST /api/flowdrop/workflows
{"id": "taken", "name": "The incumbent"}POST /api/flowdrop/workflows
{"id": "taken", "name": "The impostor"}The second request never reaches the workflow named taken; the incumbent
keeps its own name.
Why
Rule identifiers are permanent and are never renumbered. Each implementation publishes its own standing against these rules; this specification does not.spec 1.0 · STORE-3 · changed in spec 1.1