Update data in database (REST API)
Changed onUpdate existing rows in your database using REST API.
Security: Row-Level Security ensures you can only update data you have access to
Safety: Requires at least one filter to prevent accidental mass updates. A request with no filters is rejected with 400 (mirrors delete). This matters for service-key queries, which run with full access and bypass RLS.
Note: If RLS blocks the update, an empty result is returned (not an error)
Request
- Base URLhttps://api.volcano.dev
- AuthHTTP bearer
Path parameters
Database name (unique within project, lowercase letters, numbers, and underscores only)
Request body
Table name
Column values to update. JSON objects and arrays are stored as JSON, so send them to json or jsonb columns. For a Postgres array column, send an array literal string such as "{a,b}".
WHERE conditions for which rows to update. At least one filter is required; a filterless update is rejected to avoid rewriting every row.
Example request
{
"table": "posts",
"values": {
"title": "Updated Title",
"status": "published"
},
"filters": [
{
"column": "id",
"operator": "eq",
"value": "post-uuid"
}
]
}Response
Update successful
Rows returned by a data API request. RLS-filtered unless the request was made with a service key.
Result rows
Number of rows returned
Changes
- breaking
added the new path request parameter
databaseName - breaking
added the new required request property
filters - breaking
added the new required request property
table
20 more changes in this revision
- breaking