- Docs
- Techvia TMS overview
- API reference
- Customers API reference
- Change a customer
Change a customer
PATCH /api/public/v1/customers/{id}
Scope: directory.write. MCP tool: update_customer. Rules and edge cases: Customers guide.
Parameters
Section titled “Parameters”| Name | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string (uuid) | yes |
Request body
Section titled “Request body”Content type application/json. Limits and rules for each field are in the Customers guide.
| Field | Type | Required | Notes |
|---|---|---|---|
rowVersion |
integer | no | |
name |
string | no | |
mcType |
string | no | |
mcNumber |
string | no | |
street |
string | no | |
city |
string | no | |
state |
string | no | |
zip |
string | no | |
country |
string | no | |
contactName |
string | no | |
phone |
string | no | |
email |
string | no | |
confirmNew |
boolean | no | Default false |
Responses
Section titled “Responses”| Status | Meaning | Body |
|---|---|---|
200 |
OK | PublicCustomer |
404 |
Not Found | ProblemDetails |
409 |
Conflict | ProblemDetails |
422 |
Unprocessable Entity | ProblemDetails |
200 body
Section titled “200 body”| Field | Type | Notes |
|---|---|---|
id |
string (uuid) | |
name |
string | |
mcType |
string | |
mcNumber |
string | |
city |
string | |
state |
string | |
status |
enum CustomerStatus | One of Active, Inactive |
contactName |
string | |
phone |
string | |
email |
string | |
rowVersion |
integer |
Errors are RFC 7807 problem details; see Errors.