| Time | Status | User Agent |  |
| :-- | :-- | :-- | :-- |
| Make a request to see history. |

#### URL Expired

The URL for this request expired after 30 days.

### API Parameters

- **discussionId** (string, required): The unique identifier of the discussion
- **toolTaskId** (string, required): The unique identifier of the tool task
- **state** (string, enum, required): New state for the tool task
  - Allowed: `submitted`, `working`, `input-required`, `completed`, `canceled`, `failed`
- **message** (string, optional): Optional status message
- **response** (string): Tool execution response (required when state is completed)
- **x-universe-auth** (string, required): JWT authentication token

# Responses

| Code | Description |
| :-- | :-- |
| `200` | Discussion entry with tool task processed, returned as NDJSON stream |
| `400` | Bad request - validation failed, tool task not connected to entry, or other error |
| `401` | Unauthorized - invalid or missing authentication |
| `404` | Discussion, entry, or tool task not found |
| `500` | Internal server error |

### Example Request

```shell
curl --request POST \
     --url https://example.com/chats/discussionId/tool-tasks/toolTaskId \
     --header 'accept: application/x-ndjson' \
     --header 'content-type: application/json' \
     --data '\n{\n  "state": "submitted"\n}\n'  
```

Click `Try It!` to start a request and see the response here!
