Using
Partially updates a row by primary key: only the columns named in the body are set, everything else stays unchanged. Not an upsert — a PK the table doesn't have answers 404, never a create.
applies to v0.5.1PUT
/store-api/rel/{domain}/tables/{table}/rows/{pk}
const url = 'https://example.com/store-api/rel/example/tables/example/rows/example';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/store-api/rel/example/tables/example/rows/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{}'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”domain
required
string
Relational domain
table
required
string
Table name
pk
required
string
Primary key value
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
Example generated
{}Responses
Section titled “Responses”Row updated
Media typeapplication/json
object
Example generated
{}NOT NULL/type/schema violation, or body primary key != path primary key
Media typetext/plain
string
Missing read access to a linked KV/JSON domain
Media typetext/plain
string
Domain, table, column, or row not found
Media typetext/plain
string
Unique violation, or missing REFERENCES target
Media typetext/plain
string
Domain is being deleted
Media typetext/plain
string
Per-domain request budget exceeded
Media typetext/plain
string
Relational engine disabled
Media typetext/plain
string
Insufficient Storage — disk space or memory runs short; the write was not applied. Reads go on; retry after the seconds in Retry-After.
Media typetext/plain
string
Headers
Section titled “Headers”Retry-After
integer