# Change the status

> PATCH /api/public/v1/loads/{id}/status, scope loads.write. Techvia TMS public API v1 reference.

Source: https://techvia.software/docs/tms/reference/loads/change-the-status/

`PATCH /api/public/v1/loads/{id}/status`

**Scope:** `loads.write`. **MCP tool:** `update_load_status`. Rules and edge cases: [Loads guide](/docs/tms/guides/loads/).

## Parameters

| Name | In | Type | Required | Notes |
|---|---|---|---|---|
| `id` | path | string (uuid) | yes |  |

## Request body

Content type `application/json`. Limits and rules for each field are in the [Loads guide](/docs/tms/guides/loads/).

| Field | Type | Required | Notes |
|---|---|---|---|
| `status` | string | yes | One of `Open`, `Covered`, `AtPickup`, `EnRoute`, `AtDelivery`, `Delivered` |
| `rowVersion` | integer | yes |  |

## Responses

| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PublicLoadStatusResult` |
| `404` | Not Found | `ProblemDetails` |
| `409` | Conflict | `ProblemDetails` |
| `422` | Unprocessable Entity | `ProblemDetails` |

### `200` body

| Field | Type | Notes |
|---|---|---|
| `id` | string (uuid) |  |
| `loadNumber` | string |  |
| `status` | enum LoadStatus | One of `PreBook`, `Open`, `Covered`, `AtPickup`, `EnRoute`, `AtDelivery`, `Delivered`, `Completed`, `Invoiced`, `Cancelled`, `TONU` |
| `rowVersion` | integer |  |

Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).

**Example request**

**curl**

```bash
curl -X PATCH "https://tms-api.techvia.software/api/public/v1/loads/$ID/status" \
  -H "Authorization: Bearer $TMS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "status": "AtPickup",
    "rowVersion": 825
  }'
```

**JavaScript**

```js
const id = '...'; // from a list or read call
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/loads/${id}/status`, {
  method: 'PATCH',
  headers: {
    Authorization: `Bearer ${process.env.TMS_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "status": "AtPickup",
    "rowVersion": 825
  }),
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```

**Python**

```python

id = "..."  # from a list or read call
res = requests.request(
    "PATCH",
    f"https://tms-api.techvia.software/api/public/v1/loads/{id}/status",
    headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
    json={
      "status": "AtPickup",
      "rowVersion": 825
    },
)
res.raise_for_status()
print(res.json())
```

**Example response** `200`

```json
{
  "id": "01a20943-75ec-7d91-9309-8c400cddd516",
  "loadNumber": "LD-2026-000123",
  "status": "AtPickup",
  "rowVersion": 828
}
```

<p class="ep-caption">Illustrative values.</p>
