E158: Update order channel
PATCH /api/order-channels/:id
Renames or recolors an existing channel. Triggered from Settings, Order channels.
Authentication
Standard tenant route. Requires Authorization: Bearer <firebase-id-token> and X-Org-Id: <org-id>. Access: Admin.
Request
{ "name": "Direct", "displayOrder": 1 }
Response — 200 OK
{ "id": "uuid", "name": "Direct", "displayOrder": 1 }
Errors
| HTTP | code | Condition |
|---|---|---|
| 404 | not_found | No such channel. |
| 422 | validation_failed | Duplicate name. |
Workflow
Calls W158 Update order channel.