E027: Update vendor
PATCH /api/vendors/:id
Edits a vendor's header fields. Triggered from Vendor Detail.
Authentication
Standard tenant route. Requires Authorization: Bearer <firebase-id-token> and X-Org-Id: <org-id>. Access: Member.
Request
{ "name": "..." }
Code immutable after create.
Response — 200 OK
{ "id": "uuid", "code": "V-001", "name": "...", "isActive": true, "createdAt": "..." }
Errors
| HTTP | code | Condition |
|---|---|---|
| 404 | not_found | No such vendor. |
| 422 | validation_failed | Shape invalid. |
Workflow
Calls W027 Update vendor.