Patch

This endpoint allows you to update an existing resource in any collection. For example, the "todos" collection can be used to update a to-do item. Every collection in your application can be updated in the same way by replacing "todos" with the desired collection name. To use this endpoint, send a PATCH request to /todos/{id} with the data you want to update.

PATCH /todos?q[_id]=656f2b4e3f1a2b5d6c7e8f90
            
{
    "title": "Buy groceries and vegetables"
}
The request body should contain valid data based on the config.json file for the specific collection. Once the resource is successfully updated, a response with the modified resource will be returned.

Permissions

Ensure that the user has the necessary permissions to update a resource in the specified collection. The permissions are defined in the config.json file.

Edit this page on Github
© 2025 kav3.com. Crafted with and dedication.