Files
2026-10-17 05:10:25 +02:00

905 B

PUT /carrier/order

Protected. Requires a valid session cookie (credentials: 'include').

Reorder carriers

Reorders carriers for the selected company. carrierIds must include all existing carrier IDs exactly once.

Body (JSON)

Field Required Type Description
carrierIds yes integer[]
{
  "carrierIds": [
    1
  ]
}

Signals

On success, emits SSE signal: carrier (see GET /events).

Response 200

Applied carrier order

{
  "carrierIds": [
    1
  ]
}

Errors

Status Description
400 Invalid carrier order or no company selected — {"error":"…"}
401 Unauthorized — {"error":"…"}
403 Not authorized — {"error":"…"}

Generated from @openapi JSDoc. Do not edit by hand — run npm run docs:api.