v1

latestOpenAPI 3.0.0BSD-3-Clause2026-07-146135105.7 KB
database

Update Document

Update a document by its unique ID. Using the patch method you can pass only specific fields that will get updated.

patch/database/collections/{collectionId}/documents/{documentId}

Path parameters

collectionIdstring required

Collection unique ID. You can create a new collection with validation rules using the Database service server integration.

documentIdstring required

Document unique ID.

Request body

dataobject required

Document data as JSON object.

readstring[]

An array of strings with read permissions. By default inherits the existing read permissions. learn more about permissions and get a full list of available permissions.

writestring[]

An array of strings with write permissions. By default inherits the existing write permissions. learn more about permissions and get a full list of available permissions.

Response

Document

$collectionstring required

Collection ID.

$idstring required

Document ID.

$permissionsobject required

Document permissions.