## Put Writes

`checkpoints.put_writes(CheckpointPutWritesParams**kwargs)`

**post** `/checkpoints/put-writes`

Put Writes

### Parameters

- `checkpoint_id: str`

- `thread_id: str`

- `writes: Iterable[Write]`

  - `blob: str`

  - `channel: str`

  - `idx: int`

  - `task_id: str`

  - `task_path: Optional[str]`

  - `type: Optional[str]`

- `checkpoint_ns: Optional[str]`

- `upsert: Optional[bool]`

### Example

```python
import os
from agentex import Agentex

client = Agentex(
    api_key=os.environ.get("AGENTEX_SDK_API_KEY"),  # This is the default and can be omitted
)
client.checkpoints.put_writes(
    checkpoint_id="checkpoint_id",
    thread_id="thread_id",
    writes=[{
        "blob": "blob",
        "channel": "channel",
        "idx": 0,
        "task_id": "task_id",
    }],
)
```
