Skip to main content

Update a cell

PATCH /projects/:projectid/databases/:dbid/tables/:tblid/rows/:rowid

Set one column on one row.

Updates a single value. To change several columns, send several requests, or use Run SQL.

Authentication

  • Project API key: The credential for everything external. Created in Project Settings, bound to one project, and limited to the scopes it was granted. Format: proj.<keyId>.<secret>.
  • Required permission: databases.write on :dbid.

Path parameters

NameTypeRequiredDefaultDescription
projectidstringYes-The project id.
dbidstringYes-The database id.
tblidstringYes-The table name.
rowidstringYes-The row's intellectible_id.

Request body

Content type: application/json

NameTypeRequiredDefaultDescription
colidstringYes-The column to set.
newValueanyYes-The new value. May be null, but the field itself must be present.

Example

{
"colid": "total",
"newValue": 51.75
}

Example request

curl -X PATCH \
-H "Authorization: proj.KEY_ID.SECRET" \
-H "Content-Type: application/json" \
-d '{"colid":"total","newValue":51.75}' \
{{BASE_URL}}/projects/{{PROJECT_ID}}/databases/DATABASE_ID/tables/orders/rows/ROW_ID

Responses

204

Updated. No body.

400

newValue was absent, or colid is not a valid identifier.