# Update a CRM document

`PATCH /v1/crm-documents/:id` calls `crm.documentgenerator.document.update`. Use a writable key with `crm` scope. Provide `values` and/or `stampsEnabled`; an empty body returns `400`.

```bash
curl -X PATCH https://vibecode.bitrix24.com/v1/crm-documents/73 -H 'X-Api-Key: YOUR_VIBE_KEY' -H 'Content-Type: application/json' -d '{"values":{"ClientName":"Example"}}'
```

The wrapper reads the current document and preserves `stampsEnabled` when omitted. The native update method would otherwise enable stamps by default. The response contains the updated document.
