E033: Update contact
PATCH /api/contacts/:id
Edits a contact's header fields. Triggered from a contact edit modal.
Authentication
Standard tenant route. Requires Authorization: Bearer <firebase-id-token> and X-Org-Id: <org-id>. Access: Member.
Request
{ "firstName": "Jane", "lastName": "Doe", "title": "...", "notes": "...", "isActive": true }
Passing isActive archives (false) or reactivates (true) the contact; all fields are optional.
Response — 200 OK
{
"id": "uuid",
"firstName": "Jane",
"lastName": "Doe",
"title": "Account Manager",
"notes": "...",
"createdAt": "..."
}
Errors
| HTTP | code | Condition |
|---|---|---|
| 404 | not_found | No such contact. |
| 422 | validation_failed | Shape invalid. |
Workflow
Calls W033 Update contact.