Skip to content
AbloAblo
Esc
navigateopen⌘Jpreview

Update a record

PATCH/v1/models/{model}/{id}
Path parameters
modelstringrequired
Any model in your pushed schema. `task` is the running example.
idstringrequired
Request body
requiredapplication/json
numbernumber | any
Show properties
Any of:
number
number
any
any
titlestring
descriptionstring | any
Show properties
Any of:
string
string
any
any
statusstring
default: "todo"
prioritystring
default: "medium"
projectIdstring | any
Show properties
Any of:
string
string
any
any
teamIdstring | any
Show properties
Any of:
string
string
any
any
chatIdstring | any
Show properties
Any of:
string
string
any
any
parentIdstring | any
Show properties
Any of:
string
string
any
any
startDatestring<date-time> | any
Show properties
Any of:
string<date-time>
string<date-time>
any
any
endDatestring<date-time> | any
Show properties
Any of:
string<date-time>
string<date-time>
any
any
dueDatestring<date-time> | any
Show properties
Any of:
string<date-time>
string<date-time>
any
any
completedAtstring<date-time> | any
Show properties
Any of:
string<date-time>
string<date-time>
any
any
ordernumber
default: 0
orderKeystring | any
Show properties
Any of:
string
string
any
any
metadatastring | any
Show properties
Any of:
string
string
any
any
archivedAtstring<date-time> | any
Show properties
Any of:
string<date-time>
string<date-time>
any
any
updatedBystring | any
Show properties
Any of:
string
string
any
any
Responses
200Commit receipt
objectstringrequired
clientTxIdstringrequired
serverTxIdstringrequired
successbooleanrequired
statusstringrequired
Allowed:confirmedrejected
lastSyncIdinteger
opsinteger
missingIdsstring[]
Ids of any UPDATE/DELETE that matched zero rows (omitted when nothing missed).
notificationsStaleNotification[]
Held-write advisories from `onStale: "notify"`.
Show properties
Array of StaleNotification
objectstring
modelstring
idstring
readAtinteger
observedSyncIdinteger
conflictingFieldsstring[]
currentValuesobject
writtenBystring
groupstring
errorobject
Show properties
codestring
messagestring
fieldstring
requiredCapabilityRequiredCapability
On a 403, the scope the caller was missing.
Show properties
canstring
modelstring
syncGroupstring
Request
curl -X PATCH "https://api.abloatai.com/api/v1/models/task/string" \
  -H "Content-Type: application/json" \
  -d '{
  "number": 0,
  "title": "string",
  "description": "string",
  "status": "todo",
  "priority": "medium",
  "projectId": "string",
  "teamId": "string",
  "chatId": "string",
  "parentId": "string",
  "startDate": "2024-01-01T00:00:00Z",
  "endDate": "2024-01-01T00:00:00Z",
  "dueDate": "2024-01-01T00:00:00Z",
  "completedAt": "2024-01-01T00:00:00Z",
  "order": 0,
  "orderKey": "string",
  "metadata": "string",
  "archivedAt": "2024-01-01T00:00:00Z",
  "updatedBy": "string"
}'
Response
{
  "object": "commit_receipt",
  "clientTxId": "string",
  "serverTxId": "string",
  "success": true,
  "status": "confirmed",
  "lastSyncId": 0,
  "ops": 0,
  "missingIds": [
    "string"
  ],
  "notifications": [
    {
      "object": "stale_notification",
      "model": "string",
      "id": "string",
      "readAt": 0,
      "observedSyncId": 0,
      "conflictingFields": [
        "string"
      ],
      "currentValues": {},
      "writtenBy": "string",
      "group": "string"
    }
  ],
  "error": {
    "code": "string",
    "message": "string",
    "field": "string",
    "requiredCapability": {
      "can": "string",
      "model": "string",
      "syncGroup": "string"
    }
  }
}