Update a registered carrier
PATCH/carriers/:scac
A JSON merge patch of name, usdot and mc (UpdateCarrier): an absent field is kept, null or an empty string clears an optional identifier
(name cannot be cleared). The status is not patchable: use the suspension routes. A patch that changes nothing is 200 and
publishes nothing. Requires an Idempotency-Key; If-Match with the ETag is honoured (412 on mismatch). Publishes
CarrierRegistered with the new snapshot and version.
Request
Responses
- 200
- 400
- 404
- 409
- 412
- 422
- 500
The carrier is updated (or was already as asked).
Response Headers
true when this response is the stored answer of an earlier request with the same Idempotency-Key and the same method, path and body (the handler did not run again). Absent on the first execution.
The weak entity tag of the appointment or carrier, W/"<version>".
Malformed JSON body, an unknown field, an invalid path, query or header parameter, or a NUL byte in a body.
No appointment, door, closure or carrier has this id, or the path holds a NUL byte.
The appointment or carrier is in the wrong state for the command, the door is booked in an overlapping window, a closure collides, another request changed the aggregate first, or the Idempotency-Key was already used with a different request (idempotency-key-reused).
The If-Match version is not the current version of the appointment or carrier.
The request is well formed JSON but a value-object or reference rule refuses it (invalid door code, carrier or window, invalid SCAC, USDOT, MC, carrier name or suspension reason, window in the past, unknown door, door flow mismatch, unknown ASN, missing outbound reference, invalid operating hours or settings).
Unexpected server error.