> ## Documentation Index
> Fetch the complete documentation index at: https://docs.weav.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Revise improvement proposal

> Requires a token with the external-api:write ability. id string required Format: uuid . instruction string required Maximum length: 2000. cURL JavaScript Python PHP cURL JavaScript Python PHP 200 OK 409 Conflict

```http
POST https://api.weav.com/v1/kb-proposals/{id}/revise
```

Requires a token with the `external-api:write` ability.

## Path parameters

<ParamField path="id" type="string" required>
Format: `uuid`.
</ParamField>

## Body

<ParamField body="instruction" type="string" required>
Maximum length: 2000.
</ParamField>

## Request

<CodeGroup>

```bash cURL
curl --request POST \
  --url 'https://api.weav.com/v1/kb-proposals/{id}/revise' \
  --header "Authorization: Bearer ${WEAV_API_TOKEN}" \
  --header 'Content-Type: application/json' \
  --data '{
  "instruction": "string"
}'
```

```js JavaScript
const body = {
  "instruction": "string"
};
const response = await fetch("https://api.weav.com/v1/kb-proposals/{id}/revise", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.WEAV_API_TOKEN}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify(body)
});
console.log(response.status);
```

```python Python
import os
import requests

headers = {"Authorization": f"Bearer {os.environ['WEAV_API_TOKEN']}"}
body = {"instruction": "string"}
response = requests.post("https://api.weav.com/v1/kb-proposals/{id}/revise", headers=headers, json=body)
print(response.status_code)
```

```php PHP
use GuzzleHttp\Client;

$client = new Client();
$response = $client->request('POST', 'https://api.weav.com/v1/kb-proposals/{id}/revise', [
    'headers' => ['Authorization' => 'Bearer '.getenv('WEAV_API_TOKEN')],
    'json' => array (
  'instruction' => 'string',
),
]);
echo $response->getStatusCode();
```

</CodeGroup>

## Response

- `200` OK
- `409` Conflict

---

This knowledge base is built and hosted on [Weav](https://weav.com).
