# Change Otto's product description (https://notert.io/docs/api/reference/change-otto-s-product-description)

`PUT /api/v1/otto/description`

Replaces Otto's product description, as the Otto AI page's Save does, on the version read: one changed since, by a teammate or a read of the website, is EDITED_MEANWHILE. From then on it counts as your team's words, which no read of the website replaces unless someone asks for one. Needs knowledge:write and a role that may edit.

Access: A token with knowledge:write.

## Body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `description` | string | Yes | What Otto knows of the product before anything else it reads, which every answer it writes starts from. Null before one is written or read from the website. At least 1 character. At most 2000 characters. |
| `version` | integer | Yes | The version the description was read at. |

## Response 200

| Field | Type | Description |
| --- | --- | --- |
| `changed` | boolean | Whether its words changed; false for the same words again. |
| `version` | integer | Counts every change of the description, 0 before any; updateDescription takes back the one read. |

## Errors

| Status | Code | Message |
| --- | --- | --- |
| 400 | `BAD_REQUEST` | Input validation failed. |
| 401 | `UNAUTHORIZED` | Send a valid API token as a Bearer token. |
| 403 | `FORBIDDEN` | The teammate who holds this API token's secret can't change Otto's knowledge. Only an owner or admin can. |
| 403 | `HOLDER_NOT_ALLOWED` | The teammate who holds this API token's secret can't do this in the workspace now. A teammate who can should roll it in the workspace's settings. |
| 403 | `INSUFFICIENT_SCOPE` | This API token can't change what Otto reads or its description. Create one that may in the workspace's settings. |
| 403 | `NETWORK_NOT_ALLOWED` | This API token works only from the networks it was made for. Call from one of them, or create a token for this one in the workspace's settings. |
| 403 | `NO_SEAT` | This workspace's plan has no seat for you. |
| 403 | `WORKSPACE_SUSPENDED` | This workspace is suspended. |
| 409 | `CHANGED_MEANWHILE` | Something changed meanwhile. Try again. |
| 409 | `EDITED_MEANWHILE` | The description changed since that version was read. Read it again and make the change on what it says now. |
| 429 | `TOO_MANY_REQUESTS` | Too Many Requests. Its data holds `retryAfter`. |

## Example request

```sh
curl -X PUT https://app.notert.io/api/v1/otto/description \
  -H "Authorization: Bearer $NOTERT_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "description": "Acme makes invoicing for plumbers and electricians.",
  "version": 3
}'
```

## Example response 200

```json
{
  "changed": true,
  "version": 3
}
```
