[POST] .../v1/deliverycourier/edit
Edits courier. Use this method to update an existing courier record while preserving references from delivery orders. It returns row_affected, requires a positive id and validates optional name and description fields when they are provided. The caller must have courier edit permission; missing body, invalid id or field lengths, denied access, missing records, related-data restrictions and storage errors are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| description | String | Optional | Additional description. When provided, it must be no longer than 300 characters. |
| id | Int64 | Required | Courier ID. |
| name | String | Optional | Courier name. When provided, it must be no longer than 150 characters. |
Request Example
{
"id": 11,
"name": "Express Courier",
"description": "Courier service for same-day delivery"
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | Update | Update operation result. |
Response Example
{
"ok": true,
"result": {
"row_affected": 1
}
}