Deactivate (retire) a process path
DELETE/process-paths/:pathId
Idempotent: deactivating an already-deactivated path is a no-op success and does NOT republish ProcessPathDeactivated. Publishes ProcessPathDeactivated the first time a path transitions to Deactivated. A path that any site's CPT schedule still lists in a cutoff's eligiblePathIds cannot be deactivated (ADR 0026): the request is refused with 409 path-referenced-by-cpt-schedule, naming the sites, and nothing changes — revise those schedules first. A path that an ACTIVE process flow has a stage on cannot be deactivated either (ADR 0042): 409 path-in-active-flow, naming the flows — revise or retire those flows first. This service takes no position on work already assigned to this path in a downstream context — that is each consumer's own operational concern.
Request
Responses
- 204
- 404
- 409
- 500
Path deactivated (or already was)
No process path exists with this id
path-referenced-by-cpt-schedule: at least one site's CPT schedule still lists this path in a cutoff's eligiblePathIds (ADR 0026), or path-in-active-flow: at least one ACTIVE process flow has a stage on this path (ADR 0042). Either way the path stays Active and nothing is published. Also concurrent-modification when another request committed a change to this path between this call's load and write (ADR 0017).
An unexpected error (problem type internal-error): a storage or other infrastructure failure, or a recovered panic. On POST /process-paths a 5xx is never stored under the Idempotency-Key, so a retry with the same key runs again.