Update records

PATCHhttps://api.floconnector.com/v1/tables/{id}/records
Scope
tables.write
Rate limit
the key's write budget, 60 a minute

Each update names a record by id and carries only the fields to change; null clears a value. All or nothing, up to 500 per call: one refused update and nothing is written, with every problem listed as "record N" (0-based) and coded in details.errors. Send expected_version from a query and the write is refused with stale_version if the record changed since.

Path parameters

stringrequired

The table: its slug (e.g. leads), its name, or its id.

Body

The fields it takes:

updatesarray of objectrequired

The changes, one per record, up to 500 per call. A record may appear once.

Up to 500 items

ShowHide 3 fields of each item
idintegerrequired

The record id: its number in the table (1, 2, 3…).

At least 1

fieldsmap of string | number | boolean | array of string | number | booleanrequired

Only the fields to change. null clears a value.

expected_versionintegeroptional

Refuse the write if the record changed since this version.

Responses

200Success
recordsarray of object

The records after the update, in the order the updates were sent.

ShowHide 4 fields of each item
idinteger

The record id: its number in the table (1, 2, 3…). A number is never reused.

created_atstring

When the record was created, ISO 8601. Left out when a query's fields list does not name it.

updated_atstring

When the record last changed, ISO 8601. Left out when a query's fields list does not name it.

versioninteger

Goes up by one each time the record changes. Send it back as expected_version to guard an update.

400validation: a field failed validation; field names it.

Every error has the same envelope:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra structure some errors carry, such as a refused record batch's per-record errors.

401unauthorized: no key, or an unknown, revoked or expired key.

Every error has the same envelope:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra structure some errors carry, such as a refused record batch's per-record errors.

403insufficient_scope: the key lacks the route's scope, named in required. Or forbidden, or plan_limit when the plan does not include the API.

Every error has the same envelope:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra structure some errors carry, such as a refused record batch's per-record errors.

404not_found: the thing is not in this workspace.

Every error has the same envelope:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra structure some errors carry, such as a refused record batch's per-record errors.

429rate_limited: the key's per-minute budget is spent. Retry after Retry-After seconds.

Every error has the same envelope:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra structure some errors carry, such as a refused record batch's per-record errors.

Errors lists every error code and what to do about it.