- Docs
- Techvia TMS overview
- API reference
- Facilities API reference
- Change a facility
Change a facility
PATCH /api/public/v1/facilities/{id}
Scope: directory.write. MCP tool: update_facility. Rules and edge cases: Facilities 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 Facilities guide.
| Field | Type | Required | Notes |
|---|---|---|---|
rowVersion |
integer | no | |
name |
string | no | |
code |
string | no | |
confirmNew |
boolean | no | Default false |
Responses
Section titled “Responses”| Status | Meaning | Body |
|---|---|---|
200 |
OK | PublicFacility |
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 | |
code |
string | |
street |
string | |
city |
string | |
state |
string | |
zip |
string | |
timeZoneId |
string | |
status |
enum FacilityStatus | One of Active, Inactive |
rowVersion |
integer |
Errors are RFC 7807 problem details; see Errors.