Skip to content
AbloAblo
Esc
navigateopen⌘Jpreview

Update a row

Pass claim and readAt together: the lease says nobody else is writing, the watermark says the row has not moved since you read it.

PATCH/v1/models/{model}/{id}
Path parameters
modelstringrequired
A model name from your pushed schema, e.g. `task`.
idstringrequired
Request body
requiredapplication/json
dataobject | any
Show properties
Any of:
object
object
any
any
idstring | any
Show properties
Any of:
string
string
any
any
claimstring | any
Show properties
Any of:
string
string
any
any
onStalestring | any
Show properties
Any of:
string
string
any
any
readAtnumber | any
Show properties
Any of:
number
number
any
any
fenceTokennumber | any
Show properties
Any of:
number
number
any
any
idempotencyKeystring
Responses
200Commit receipt
One of:
object
objectstringrequired
idstring
min length 1
clientTxIdstringrequired
min length 1
serverTxIdstringrequired
min length 1
successbooleanrequired
lastSyncIdintegerrequired
min 0 · max 9007199254740991
opsintegerrequired
min 0 · max 9007199254740991
notificationsobject[]
Show properties
Array of object
objectstring
modelstringrequired
idstringrequired
readAtnumberrequired
observedSyncIdnumberrequired
conflictingFieldsstring[]required
currentValuesobjectrequired
writtenByobjectrequired
Show properties
kindstringrequired
Allowed:useragentsystem
idstringrequired
groupstring
missingIdsstring[]
statusstringrequired
correlationIdstringrequired
min length 1 · max length 255
object
objectstringrequired
idstring
min length 1
clientTxIdstringrequired
min length 1
serverTxIdstringrequired
min length 1
successbooleanrequired
lastSyncIdintegerrequired
min 0 · max 9007199254740991
opsintegerrequired
min 0 · max 9007199254740991
notificationsobject[]
Show properties
Array of object
objectstring
modelstringrequired
idstringrequired
readAtnumberrequired
observedSyncIdnumberrequired
conflictingFieldsstring[]required
currentValuesobjectrequired
writtenByobjectrequired
Show properties
kindstringrequired
Allowed:useragentsystem
idstringrequired
groupstring
missingIdsstring[]
statusstringrequired
correlationIdstring
min length 1 · max length 255
400The request did not satisfy the published contract.
typestringrequired
codestring
paramstring
messagestringrequired
doc_urlstring
request_idstring
errorsobject[]
Show properties
Array of object
codestring
messagestringrequired
paramstring
401The Bearer credential is missing, malformed, or expired.
typestringrequired
codestring
paramstring
messagestringrequired
doc_urlstring
request_idstring
errorsobject[]
Show properties
Array of object
codestring
messagestringrequired
paramstring
403The credential does not authorize this operation.
typestringrequired
codestring
paramstring
messagestringrequired
doc_urlstring
request_idstring
errorsobject[]
Show properties
Array of object
codestring
messagestringrequired
paramstring
404The addressed resource does not exist in the credential scope.
typestringrequired
codestring
paramstring
messagestringrequired
doc_urlstring
request_idstring
errorsobject[]
Show properties
Array of object
codestring
messagestringrequired
paramstring
409The request conflicts with current claim, version, or idempotency state.
typestringrequired
codestring
paramstring
messagestringrequired
doc_urlstring
request_idstring
errorsobject[]
Show properties
Array of object
codestring
messagestringrequired
paramstring
429The caller exceeded an enforced rate limit.
typestringrequired
codestring
paramstring
messagestringrequired
doc_urlstring
request_idstring
errorsobject[]
Show properties
Array of object
codestring
messagestringrequired
paramstring
500The server could not complete the request.
typestringrequired
codestring
paramstring
messagestringrequired
doc_urlstring
request_idstring
errorsobject[]
Show properties
Array of object
codestring
messagestringrequired
paramstring
503A required service is temporarily unavailable.
typestringrequired
codestring
paramstring
messagestringrequired
doc_urlstring
request_idstring
errorsobject[]
Show properties
Array of object
codestring
messagestringrequired
paramstring
defaultAn HTTP error not otherwise listed; decoded through the canonical envelope.
typestringrequired
codestring
paramstring
messagestringrequired
doc_urlstring
request_idstring
errorsobject[]
Show properties
Array of object
codestring
messagestringrequired
paramstring
Request
curl -X PATCH "https://api.abloatai.com/api/v1/models/string/string" \
  -H "Content-Type: application/json" \
  -d '{
  "data": {},
  "id": "string",
  "claim": "string",
  "onStale": "reject",
  "readAt": 0,
  "fenceToken": 0,
  "idempotencyKey": "string"
}'
Response
{
  "object": "commit_receipt",
  "id": "string",
  "clientTxId": "string",
  "serverTxId": "string",
  "success": true,
  "lastSyncId": 0,
  "ops": 0,
  "notifications": [
    {
      "object": "stale_notification",
      "model": "string",
      "id": "string",
      "readAt": 0,
      "observedSyncId": 0,
      "conflictingFields": [
        "string"
      ],
      "currentValues": {},
      "writtenBy": {
        "kind": "user",
        "id": "string"
      },
      "group": "string"
    }
  ],
  "missingIds": [
    "string"
  ],
  "status": "queued",
  "correlationId": "string"
}