Skip to main content
PATCH
Set carrier status
Changes the status of an existing carrier. On success the endpoint returns 204 No Content; the carrier’s new optimistic-concurrency token is returned on the ETag response header. This endpoint supports optional optimistic concurrency. When you send the carrier’s current ETag in an If-Match header, a change made by someone else since you read the record fails with 412 Precondition Failed instead of overwriting it — refetch with GET to obtain a fresh token and retry. When you omit the header the write is last-writer-wins.
Status changes are not supported for owner-operator carriers. A request against one returns 422 Unprocessable Entity, not 404 — the carrier exists, but its type has no status to transition.

Status Codes


Rate Limits

All endpoints are subject to rate limits to protect the API from traffic spikes. For detailed information on rate limits, please refer to the Rate Limits section.

Authorizations

Authorization
string
header
required

OAuth 2.0 client-credentials access token. Obtain one from https://auth.alvys.com/oauth/token (grant_type=client_credentials, audience=https://api.alvys.com/public/), then paste it here. The playground sends it as Authorization: Bearer <token>.

Headers

If-Match
string

The carrier's current ETag (from a prior GET response header), for optimistic concurrency. Optional: when sent, a concurrent change to the carrier is rejected with 412 instead of overwriting it. When omitted, the write is last-writer-wins. The updated ETag is returned on the response ETag header.

Path Parameters

carrierId
string
required
version
string
default:1.0
required

API version (e.g., 1.0)

Example:

"1.0"

Body

Status
string
required

Response

No Content