Update Document
Update an existing document
PATCH
Updates specific fields of an existing document.
Path Parameters
idstringrequiredThe document ID.
Request Body
dataobjectrequiredFields to update.
curl -X PATCH "https://api.example.com/v1/documents/doc_abc" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"data": {
"title": "Updated Title",
"published": false
}
}'{
"data": {
"id": "doc_abc",
"collection": "posts",
"data": {
"title": "Updated Title",
"content": "Hello world!",
"published": false
},
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T11:45:00Z"
}
}