> This page is for version Prod (default).
> For other versions, use one of these documentation indexes:
> - Prod (default): https://docs.chrt.com/prod/llms.txt
> - Staging: https://docs.chrt.com/staging/llms.txt
> - Dev: https://docs.chrt.com/dev/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.chrt.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.chrt.com/_mcp/server.

# Edit entry

PATCH https://api.chrt.com/operations/operations_task_lists/entries/edit/v1/{task_list_id}/{entry_uuid}
Content-Type: application/json

Replaces the entry with the given uuid in an OperationsTaskList's `entries` array. The stored uuid is preserved regardless of the request body. 404 if no entry matches. | authz: min_org_role=operator | (OperationsTaskListEntryClientCreate1) -> (bool)

Reference: https://docs.chrt.com/api-reference/api-reference/operations/operations-task-lists/edit-entry-v-1

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Servers

- `https://api.chrt.com` (Production, default)
- `https://api.dev.chrt.com` (Development)
- `https://api.staging.chrt.com` (Staging)
- `https://localhost:8000` (Local)

## Request

### Path parameters

- `task_list_id` (string, required)
- `entry_uuid` (string, required)

### Body (application/json)

This endpoint expects an OperationsTaskListEntryClientCreate1.

- `description` (string, required)
- `task_type` (enum, required) — Coarse functional buckets a dispatcher batch-processes (powers the per-type functional-queue index). Granular SOP specifics live in the Task's `title`/`description`, not here. Ordered roughly along the shipment lifecycle (review -> research -> book -> track/verify -> contact -> billing). The buckets are the distinct *modes of work* an operator sits down and batches; the exact SOP step (e.g. "Send Shipping Label", "CBC Call", "Get Pack Time") is captured in the title. Contact is split by *who* (customer, agent, airline, other), not by *channel* (call vs. email) — the recipient is what a dispatcher batches around, and the channel is captured in title/description detail.
  - Allowed values: `review_order_details`, `flight_check`, `facility_check`, `weather_check`, `book_cargo`, `customs`, `track_and_verify`, `contact_customer`, `contact_agent`, `contact_airline`, `contact_other`, `finalize_billing`, `custom`, `other`
- `title` (string, required)
- `deadline_anchor` (enum, optional) — What an entry's `deadline_offset_seconds` is measured from. Resolved in a single forward pass at apply time (see module docstring).
  - Allowed values: `from_first_task`, `from_previous_task`
- `deadline_offset_seconds` (integer, optional, default: 1200)

## Response

### 200

Successful Response

- `boolean`

## Errors

### 422 Operations Task Lists Edit Entry V1request Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### ValidationError

- `loc` (list of LocationItem, required)
- `msg` (string, required)
- `type` (string, required)
- `ctx` (map from string to any, optional)
- `input` (any, optional)

### LocationItem

- string
- integer

## Examples

**Request**

```json
{
  "description": "description",
  "task_type": "review_order_details",
  "title": "title"
}
```

**Response**

```json
true
```

**SDK Code**

```python
import requests

url = "https://api.chrt.com/operations/operations_task_lists/entries/edit/v1/task_list_id/entry_uuid"

payload = {
    "description": "description",
    "task_type": "review_order_details",
    "title": "title"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.chrt.com/operations/operations_task_lists/entries/edit/v1/task_list_id/entry_uuid';
const options = {
  method: 'PATCH',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"description":"description","task_type":"review_order_details","title":"title"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.chrt.com/operations/operations_task_lists/entries/edit/v1/task_list_id/entry_uuid"

	payload := strings.NewReader("{\n  \"description\": \"description\",\n  \"task_type\": \"review_order_details\",\n  \"title\": \"title\"\n}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.chrt.com/operations/operations_task_lists/entries/edit/v1/task_list_id/entry_uuid")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"description\": \"description\",\n  \"task_type\": \"review_order_details\",\n  \"title\": \"title\"\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.patch("https://api.chrt.com/operations/operations_task_lists/entries/edit/v1/task_list_id/entry_uuid")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"description\": \"description\",\n  \"task_type\": \"review_order_details\",\n  \"title\": \"title\"\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://api.chrt.com/operations/operations_task_lists/entries/edit/v1/task_list_id/entry_uuid', [
  'body' => '{
  "description": "description",
  "task_type": "review_order_details",
  "title": "title"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.chrt.com/operations/operations_task_lists/entries/edit/v1/task_list_id/entry_uuid");
var request = new RestRequest(Method.PATCH);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"description\": \"description\",\n  \"task_type\": \"review_order_details\",\n  \"title\": \"title\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "description": "description",
  "task_type": "review_order_details",
  "title": "title"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.chrt.com/operations/operations_task_lists/entries/edit/v1/task_list_id/entry_uuid")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```