endDowntime
POST/api/v1/downtimes/:id/end
Ends a downtime now; the reason goes into the audit event. Downtimes of origin inventory follow their records and can't be ended here. The end is a position of the order (docs/pipeline.md §8).
Request
Responses
- 200
- 403
- 404
- 409
Ended now
downtime.admin_required: the downtime needed admin to create; auth.selector
object.not_found: no such object, or not in the caller's scopes
downtime.ended: already ended; downtime.not_endable: origin inventory