> ## 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.

# Edit pending proposal content

> Saves a pending proposal's title and Markdown without publishing. New-article drafts stay synchronized; update proposals do not change the published article. Category changes use PATCH /kb-proposals/{id}.

Saves a pending proposal's title and Markdown without publishing. New-article drafts stay synchronized; update proposals do not change the published article. Category changes use PATCH /kb-proposals/{id}.

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

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

## Path parameters

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

## Body

<ParamField body="title" type="string" required>
Maximum length: 255.
</ParamField>

<ParamField body="content" type="string" required>
Full replacement Markdown, including image URLs and native components

Maximum length: 1048576.
</ParamField>

## Request

<CodeGroup>

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

```js JavaScript
const body = {
  "title": "string",
  "content": "string"
};
const response = await fetch("https://api.weav.com/v1/kb-proposals/{id}/content", {
  method: "PATCH",
  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 = {"title": "string", "content": "string"}
response = requests.patch("https://api.weav.com/v1/kb-proposals/{id}/content", headers=headers, json=body)
print(response.status_code)
```

```php PHP
use GuzzleHttp\Client;

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

</CodeGroup>

## Response

- `200` OK
- `401` Unauthorized
- `403` Forbidden
- `404` Not Found
- `409` Conflict
- `422` Unprocessable Content

---

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