E051: Update customer type
PATCH /api/customer-types/:id
Renames an existing customer type. Triggered from Settings, Customer types.
Authentication
Standard tenant route. Requires Authorization: Bearer <firebase-id-token> and X-Org-Id: <org-id>. Access: Admin.
Request
{ "name": "Distributor", "displayOrder": 1, "isActive": true }
Passing isActive archives (false) or reactivates (true) the customer type; all fields are optional.
Response — 200 OK
{ "id": "uuid", "name": "Distributor", "displayOrder": 1 }
Errors
| HTTP | code | Condition |
|---|---|---|
| 404 | not_found | No such type. |
| 422 | validation_failed | Duplicate name. |
Workflow
Calls W051 Update customer type.