Contact.Update
Endpoint
- Method:
PUT - Route:
Contact/Update/{code} - Authentication:
Authorize
Updates a contact. Account administrators can update contacts on their own account, or on
bill-to accounts listed in AdditionalWebAccess when customerCode is supplied. Other users can
update only their own record on the same account. Master contacts (configured
MasterContactCode for the tenant, with API key) can update under any account by supplying
customerCode. The webAccess level and limitSearchToMyOrders flag are elevated-only
(administrator or master contact) and are ignored for other callers.
Request Schema
Headers
| Header | Required | Notes |
|---|---|---|
X-Api-Key |
Required when tenant is not resolved by subdomain | Resolves the tenant/customer database. Also required for master-contact elevation. |
Authorization: Bearer {token} |
Required for authorized endpoints | Get a token from Auth/Token or Session/Create. |
Path Parameters
| Field | Type | Required | Notes |
|---|---|---|---|
code |
int |
Yes | Contact code to update. |
JSON Body
Body type: ContactWriteRequestDto (same fields as Create).
Login credentials (password) are not managed through this endpoint.
Request Sample
{
"customerCode": "8888",
"contact": "Maria Contact",
"email": "maria.contact@example.com",
"phone": "2135550100",
"fax": "2135550101",
"defaultCourtState": "CA",
"defaultCourtCounty": "Los Angeles",
"webAccess": "AttorneyService",
"limitSearchToMyOrders": false
}
Expected Response Schema
Status Codes
| Status | Notes |
|---|---|
200 OK |
Contact updated; the updated contact is returned. |
400 Bad Request |
Validation failed (for example an invalid webAccess value). |
403 Forbidden |
Caller may not update this contact or target account. |
404 Not Found |
No contact with that code exists on the target account. |
Success Body
Response type: ContactLookupDto (see GetAll for fields).