Set fields, clear fields, add or remove items of list fields, add links, remove links. If-Match names the revision the change was written against. Answers with written_id and the record, which is absent when the write took it out of the caller's sight.
Set fields, clear fields, add or remove items of list fields, add links, remove links. If-Match names the revision the change was written against. Answers with written_id and the record, which is absent when the write took it out of the caller’s sight.
Re-sent under the same Idempotency-Key: The update is one write, recorded under the key and what it asks: field changes, list items and link edits apply together or not at all, and re-sent, none of them applies again, so an item or link removed since by another request stays removed. That holds for an item change that changed nothing (an item the list already held). A change that applied is answered as applied however the record’s revision has moved since: If-Match guards its first application only. A different body under the key is refused (409 idempotency_key_reused) while the key is kept, and applied as a new change after that.
PATCH
/
v1
/
object-model
/
records
/
{type_id}
/
{record_id}
Set fields, clear fields, add or remove items of list fields, add links, remove links. If-Match names the revision the change was written against. Answers with written_id and the record, which is absent when the write took it out of the caller's sight.
An API key issued with object_model scopes: Authorization: Bearer sk_…. The scopes: object_model:records:read, object_model:records:write, object_model:facts:read, object_model:facts:write, object_model:model:read, object_model:model:configure, object_model:actions:run, object_model:changes:read. An operation's security lists the scopes it needs; several entries mean any one of them will do. A person field (ref(user), ref_list(user)) holds a user id: look people up by email or id with GET /v1/users, outside this API, with a key that also has users:read.
Scopes
object_model:records:write
Headers
If-Match
string
The record's revision the change was written against, as read. If the record is at another revision, nothing is applied (412 revision_mismatch, details.current_revision): read it again and send the change against what is there. Leave it out to apply the change at whatever revision the record is. Send it as the If-Match header (If-Match: 1842, quotes allowed) or as expected_revision in the body; the header wins when both are sent.
Idempotency-Key
string
required
Required on every write: one key per logical write, sent again unchanged on every retry. A finished request replays its answer for 24 hours; the same key on a different request is refused (409 idempotency_key_reused). A dry run (dry_run: true) needs none, and is not recorded under one it carries.
Required string length: 1 - 255
Pattern: ^[\x20-\x7E]+$
Path Parameters
type_id
string
required
record_id
string
required
Body
application/json
expected_revision
string<int64>integer<int64>
The record's revision the change was written against, as read. If the record is at another revision, nothing is applied (412 revision_mismatch, details.current_revision): read it again and send the change against what is there. Leave it out to apply the change at whatever revision the record is. Send it as the If-Match header (If-Match: 1842, quotes allowed) or as expected_revision in the body; the header wins when both are sent.
idempotency_key
string
Taken from the Idempotency-Key header: leave it out.
links_add
object
Links to add, by relation_id, in the same shape as a create's links.
Show child attributes
links_remove
object
Links to remove, by relation_id, in the same shape as a create's links.
Show child attributes
list_add
object
Items to add to list fields (multi_select, string_list, ref_list), by field: added to the list as it is when written, not to a copy you read, so an item someone else added meanwhile stays, and an item the list holds is not added twice. A field takes values, unset or items, not two of them (422 conflicting_changes).
Show child attributes
list_remove
object
Items to remove from list fields, by field, applied the same way: every occurrence goes, and an item the list does not hold is no change.
Show child attributes
record_id
string
Named by the path: leave it out, or send the same id.
type_id
string
Named by the path: leave it out, or send the same id.
unset
string[]
Fields to clear, by name. A field takes values, unset, list_add or list_remove, not two of them.
values
object
The fields to change, each keyed by its name in the JSON its storage takes. Fields left out keep their values. To add items to a list field or remove them without replacing it, use list_add and list_remove. null clears a field. Every value is checked against its field before anything is written, and a value of the wrong shape is refused (422 wrong_shape).
storage
Write
Example
string, text
A string.
"Elm Court"
url
An absolute http or https URL.
"https://elmcourt.example.com"
phone
A phone number, as a string.
"+1 (512) 555-0100"
int
A whole number.
24
decimal, number, or a unit such as USD
A number, in the field's unit: dollars, not cents. A percent is a fraction.
3200000, 0.0625
bool
true or false.
true
timestamp
An RFC 3339 time, a date (midnight UTC), or epoch seconds as a number.
"2024-03-01T15:30:00Z", "2024-03-01", 1709251200
single_select
One of the field's allowed_values: the value, never its label (else 422 not_an_option).
"under_contract"
multi_select
An array of allowed_values, each at most once.
["pool", "gym"]
string_list
An array of strings; of allowed_values when the field lists any.
["north", "east"]
personal_name
An object with first_name and last_name; a middle name or initial goes in first_name. full_name may be left out, and if sent must be the two joined by a space.
{"first_name": "Jane Q.", "last_name": "Doe"}
location
An object with any of street_address, city, state, postal_code and country, each a string.
One record id of that type, or a person's user id (look one up by email with GET /v1/users). A field naming several types, such as ref(company,person), takes an id of any of them.
An object naming, by id, a file already uploaded to the organization. This API does not upload files.
{"id": "6650d5e3b1f8a92c4e0d6b31"}
Response
Answered.
deleted_id
string
A delete's answer: the id removed, once it is gone.
disposition
string
A create's answer: created, or existing when unique_by matched a record, which is answered unchanged.
next_cursor
string
Send it as cursor for the next page. Empty on the last page.
records
object[]
The records: a page of a listing or query, or the one record a get or write answers.
Show child attributes
summary
object
With aggregates or group: {"aggregates": [{"field", "op", "value", "error"}], "groups": [{"value", "count", "aggregates": […]}], "groups_truncated"}. aggregates are in the order asked, over every match, not only this page. A count is 0 when nothing matches; a sum, average, min or max is null when no match has a value. groups has one entry per value of the group field, in ascending order (records with no value form a group whose value is null), at most 200, with groups_truncated set past that. Sent again on every page.
total_count
string<int64>integer<int64>
How many records the query matched in all, as a string. An unsorted listing or query sends it on its first page only; a sorted or summarizing query sends it on every page. Absent on a get or a write.
written_id
string
A create's or update's answer: the record written. Also in records, unless the write itself took the record out of your sight.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"VectorShift","colors":{"primary":"#6366f1","light":"#818cf8","dark":"#4f46e5"},"logo":{"light":"https://mintcdn.com/vectorshift/ko1lD3nuBSgpmLV4/logo/vectorshift-logo.png?fit=max\u0026auto=format\u0026n=ko1lD3nuBSgpmLV4\u0026q=85\u0026s=0b909e21221badbcd2332ad0c7b06a8e","dark":"https://mintcdn.com/vectorshift/ko1lD3nuBSgpmLV4/logo/vectorshift-logo.png?fit=max\u0026auto=format\u0026n=ko1lD3nuBSgpmLV4\u0026q=85\u0026s=0b909e21221badbcd2332ad0c7b06a8e"},"favicon":"https://mintcdn.com/vectorshift/PSG1OGMwi51Mi0EL/android-chrome-512x512.png?fit=max\u0026auto=format\u0026n=PSG1OGMwi51Mi0EL\u0026q=85\u0026s=1a5016324923f89a576a8696462ef07e","appearance":{"default":"system","strict":false},"navbar":{"links":[{"href":"/support","label":"Support"},{"href":"https://app.vectorshift.ai/account/api-keys","label":"API Keys"}],"primary":{"type":"button","label":"Platform","href":"https://app.vectorshift.ai"}},"footer":{"socials":{"x":"https://x.com/vectorshiftai","linkedin":"https://linkedin.com/company/vectorshift"}},"search":{"prompt":"Search the SDK, API, and platform docs…"},"seo":{"metatags":{"og:image":"/logo/vectorshift-logo.png"},"indexing":"navigable"},"icons":{"library":"lucide"},"styling":{"codeblocks":{"languages":{}},"latex":true},"contextual":{"options":["copy","view","chatgpt","claude","aistudio","perplexity"],"display":"header"},"navigation":{"global":{"anchors":[{"anchor":"Book a Demo","icon":"calendar","href":"https://calendly.com/albert_mao/vectorshift-intro-chat"},{"anchor":"Changelog","icon":"history","href":"https://vectorshift.ai/blog?tag=changelog"},{"anchor":"Blog","icon":"newspaper","href":"https://vectorshift.ai/blog"},{"anchor":"Tutorials","icon":"youtube","href":"https://www.youtube.com/@VectorShiftAI"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"vectorshift","hasAudioNarration":false,"actualSubdomain":"vectorshift","customDomains":["docs.vectorshift.ai"],"gitSource":{"type":"github","owner":"vectorshift","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b0847caae6faf96d9a2a245","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"default","tag":"SDK","count":136},{"language":"default","tag":"Documentation","count":124},{"language":"default","tag":"Examples","count":84},{"language":"default","tag":"Nodes","count":65},{"language":"default","tag":"Platform","count":61},{"language":"default","tag":"Ontology","count":57},{"language":"default","tag":"Pipeline","count":38},{"language":"default","tag":"API Reference","count":31},{"language":"default","tag":"Agent","count":27},{"language":"default","tag":"Knowledge Base","count":24}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"@media (min-width: 1024px){.hidden.xl\\:flex{display:flex!important}div.z-10.hidden:has(>div.xl\\:flex){display:block!important}}"}]}
{"page":{"pagePath":"ontology/records/update","slug":"/ontology/records/update","pageMetadata":{"title":"Update a record","openapi":"ontology/openapi.json PATCH /v1/object-model/records/{type_id}/{record_id}","description":"Set fields, clear fields, add or remove items of list fields, add links, remove links. If-Match names the revision the change was written against. Answers with written_id and the record, which is absent when the write took it out of the caller's sight.\n\n**Re-sent under the same Idempotency-Key:** The update is one write, recorded under the key and what it asks: field changes, list items and link edits apply together or not at all, and re-sent, none of them applies again, so an item or link removed since by another request stays removed. That holds for an item change that changed nothing (an item the list already held). A change that applied is answered as applied however the record's revision has moved since: If-Match guards its first application only. A different body under the key is refused (409 `idempotency_key_reused`) while the key is kept, and applied as a new change after that.","href":"/ontology/records/update"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Set fields, clear fields, add or remove items of list fields, add links, remove links. If-Match names the revision the change was written against. Answers with written_id and the record, which is absent when the write took it out of the caller’s sight.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Re-sent under the same Idempotency-Key:\"\n }), \" The update is one write, recorded under the key and what it asks: field changes, list items and link edits apply together or not at all, and re-sent, none of them applies again, so an item or link removed since by another request stays removed. That holds for an item change that changed nothing (an item the list already held). A change that applied is answered as applied however the record’s revision has moved since: If-Match guards its first application only. A different body under the key is refused (409 \", _jsx(_components.code, {\n children: \"idempotency_key_reused\"\n }), \") while the key is kept, and applied as a new change after that.\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":{"languages":{}},"config":{},"pageMetadata":{"title":"Update a record","openapi":"ontology/openapi.json PATCH /v1/object-model/records/{type_id}/{record_id}","description":"Set fields, clear fields, add or remove items of list fields, add links, remove links. If-Match names the revision the change was written against. Answers with written_id and the record, which is absent when the write took it out of the caller's sight.\n\n**Re-sent under the same Idempotency-Key:** The update is one write, recorded under the key and what it asks: field changes, list items and link edits apply together or not at all, and re-sent, none of them applies again, so an item or link removed since by another request stays removed. That holds for an item change that changed nothing (an item the list already held). A change that applied is answered as applied however the record's revision has moved since: If-Match guards its first application only. A different body under the key is refused (409 `idempotency_key_reused`) while the key is kept, and applied as a new change after that.","href":"/ontology/records/update"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Set fields, clear fields, add or remove items of list fields, add links, remove links. If-Match names the revision the change was written against. Answers with written_id and the record, which is absent when the write took it out of the caller's sight.\n\n**Re-sent under the same Idempotency-Key:** The update is one write, recorded under the key and what it asks: field changes, list items and link edits apply together or not at all, and re-sent, none of them applies again, so an item or link removed since by another request stays removed. That holds for an item change that changed nothing (an item the list already held). A change that applied is answered as applied however the record's revision has moved since: If-Match guards its first application only. A different body under the key is refused (409 `idempotency_key_reused`) while the key is kept, and applied as a new change after that.","operationId":"patch_records_by_type_id_by_record_id","parameters":["d604ad54-61db-49bb-8b9e-ea61fe54be68","d262eb0a-660d-4656-9eed-599fdede13ba","0fc842ad-26e8-4d19-aec4-76cff32935f8","e04a978f-7642-4576-a2a7-cb9638b3f429"],"requestBody":"1f6dcd78-a35d-4549-8fbc-152b617e9008","responses":{"200":"b0586945-fd4c-4f1a-ac22-d5606dabb6a0","400":"9b4c7b4d-db86-4607-b07d-809d5b36ea4d","401":"277c7d5d-6a47-4704-a98f-97462a51c771","403":"e8ab044d-730e-49fa-af8c-cb92222f2ef3","404":"5cff666d-ec1b-41fa-b685-d12e86ace701","409":"2de1eb32-82b2-46fa-8b31-71ffff1cf233","412":"054e3800-9f60-4ccc-86e6-17613360cd95","413":"3001903f-23d6-4d95-9068-7d15d31323b0","422":"10986eba-969b-4cff-b11f-ecaafff48299","429":"c776e6ad-e74f-447c-9731-828bcbb9875e","503":"f170d228-261f-44dd-8c88-dc94bd330e34","504":"aba53b1e-26a2-4cfe-8ccc-f5bf80248692"},"security":["98ed960d-6427-4c9d-b01d-8b53b66b07fc"],"summary":"Set fields, clear fields, add or remove items of list fields, add links, remove links. If-Match names the revision the change was written against. Answers with written_id and the record, which is absent when the write took it out of the caller's sight.","tags":["records"],"x-cost":"write","x-idempotency":{"key":"required","resent":"The update is one write, recorded under the key and what it asks: field changes, list items and link edits apply together or not at all, and re-sent, none of them applies again, so an item or link removed since by another request stays removed. That holds for an item change that changed nothing (an item the list already held). A change that applied is answered as applied however the record's revision has moved since: If-Match guards its first application only. A different body under the key is refused (409 `idempotency_key_reused`) while the key is kept, and applied as a new change after that.","retention_hours":24},"x-scope":["object_model:records:write"],"x-stability":"beta","method":"patch","type":"path","servers":["21882d02-359c-4852-99ad-7e493557f05d"],"path":"/v1/object-model/records/{type_id}/{record_id}","baseUrlOptions":["https://api.vectorshift.ai"],"title":"Set fields, clear fields, add or remove items of list fields, add links, remove links. If-Match names the revision the change was written against. Answers with written_id and the record, which is absent when the write took it out of the caller's sight.","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"d604ad54-61db-49bb-8b9e-ea61fe54be68":{"in":"path","name":"type_id","required":true,"schema":{"type":"string","isRequired":true,"uniqueKey":"","typeLabel":"string"}},"d262eb0a-660d-4656-9eed-599fdede13ba":{"in":"path","name":"record_id","required":true,"schema":{"type":"string","isRequired":true,"uniqueKey":"","typeLabel":"string"}},"0fc842ad-26e8-4d19-aec4-76cff32935f8":{"description":"The record's `revision` the change was written against, as read. If the record is at another revision, nothing is applied (412 `revision_mismatch`, `details.current_revision`): read it again and send the change against what is there. Leave it out to apply the change at whatever revision the record is. Send it as the `If-Match` header (`If-Match: 1842`, quotes allowed) or as `expected_revision` in the body; the header wins when both are sent.","in":"header","name":"If-Match","schema":{"type":"string","description":"The record's `revision` the change was written against, as read. If the record is at another revision, nothing is applied (412 `revision_mismatch`, `details.current_revision`): read it again and send the change against what is there. Leave it out to apply the change at whatever revision the record is. Send it as the `If-Match` header (`If-Match: 1842`, quotes allowed) or as `expected_revision` in the body; the header wins when both are sent.","uniqueKey":"","typeLabel":"string"}},"e04a978f-7642-4576-a2a7-cb9638b3f429":{"description":"Required on every write: one key per logical write, sent again unchanged on every retry. A finished request replays its answer for 24 hours; the same key on a different request is refused (409 `idempotency_key_reused`). A dry run (`dry_run: true`) needs none, and is not recorded under one it carries.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":1,"pattern":"^[\\x20-\\x7E]+$","type":"string","isRequired":true,"description":"Required on every write: one key per logical write, sent again unchanged on every retry. A finished request replays its answer for 24 hours; the same key on a different request is refused (409 `idempotency_key_reused`). A dry run (`dry_run: true`) needs none, and is not recorded under one it carries.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"content":{"application/json":{"examples":{"example":{"title":"example","summary":"An illustrative body: real ids come from GET /schema.","value":{"list_add":{"tags":{"items":["priority"]}},"values":{"lost_reason":null,"stage":"won"}}}},"schema":{"additionalProperties":false,"properties":{"expected_revision":{"oneOf":[{"description":"The record's `revision` the change was written against, as read. If the record is at another revision, nothing is applied (412 `revision_mismatch`, `details.current_revision`): read it again and send the change against what is there. Leave it out to apply the change at whatever revision the record is. Send it as the `If-Match` header (`If-Match: 1842`, quotes allowed) or as `expected_revision` in the body; the header wins when both are sent.","format":"int64","type":"string","uniqueKey":"expected_revision.oneOf.0","typeLabel":"string\u003cint64>"},{"description":"The record's `revision` the change was written against, as read. If the record is at another revision, nothing is applied (412 `revision_mismatch`, `details.current_revision`): read it again and send the change against what is there. Leave it out to apply the change at whatever revision the record is. Send it as the `If-Match` header (`If-Match: 1842`, quotes allowed) or as `expected_revision` in the body; the header wins when both are sent.","format":"int64","type":"integer","uniqueKey":"expected_revision.oneOf.1","typeLabel":"integer\u003cint64>"}],"uniqueKey":"expected_revision","typeLabel":"string\u003cint64> | integer\u003cint64>"},"idempotency_key":{"description":"Taken from the `Idempotency-Key` header: leave it out.","type":"string","uniqueKey":"idempotency_key","typeLabel":"string"},"links_add":{"additionalProperties":{"additionalProperties":false,"properties":{"ids":{"description":"The records to link, by id.","items":{"type":"string","uniqueKey":"links_add.additionalProperties.ids.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"links_add.additionalProperties.ids","typeLabel":"string[]"}},"type":"object","uniqueKey":"links_add.additionalProperties","typeLabel":"object"},"description":"Links to add, by `relation_id`, in the same shape as a create's `links`.","type":"object","uniqueKey":"links_add","typeLabel":"object"},"links_remove":{"additionalProperties":{"additionalProperties":false,"properties":{"ids":{"description":"The records to link, by id.","items":{"type":"string","uniqueKey":"links_remove.additionalProperties.ids.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"links_remove.additionalProperties.ids","typeLabel":"string[]"}},"type":"object","uniqueKey":"links_remove.additionalProperties","typeLabel":"object"},"description":"Links to remove, by `relation_id`, in the same shape as a create's `links`.","type":"object","uniqueKey":"links_remove","typeLabel":"object"},"list_add":{"additionalProperties":{"additionalProperties":false,"properties":{"items":{"items":{"type":"string","uniqueKey":"list_add.additionalProperties.\\items.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"list_add.additionalProperties.\\items","typeLabel":"string[]"}},"type":"object","uniqueKey":"list_add.additionalProperties","typeLabel":"object"},"description":"Items to add to list fields (multi_select, string_list, ref_list), by field: added to the list as it is when written, not to a copy you read, so an item someone else added meanwhile stays, and an item the list holds is not added twice. A field takes `values`, `unset` or items, not two of them (422 `conflicting_changes`).","type":"object","uniqueKey":"list_add","typeLabel":"object"},"list_remove":{"additionalProperties":{"additionalProperties":false,"properties":{"items":{"items":{"type":"string","uniqueKey":"list_remove.additionalProperties.\\items.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"list_remove.additionalProperties.\\items","typeLabel":"string[]"}},"type":"object","uniqueKey":"list_remove.additionalProperties","typeLabel":"object"},"description":"Items to remove from list fields, by field, applied the same way: every occurrence goes, and an item the list does not hold is no change.","type":"object","uniqueKey":"list_remove","typeLabel":"object"},"record_id":{"description":"Named by the path: leave it out, or send the same id.","type":"string","uniqueKey":"record_id","typeLabel":"string"},"type_id":{"description":"Named by the path: leave it out, or send the same id.","type":"string","uniqueKey":"type_id","typeLabel":"string"},"unset":{"description":"Fields to clear, by name. A field takes `values`, `unset`, `list_add` or `list_remove`, not two of them.","items":{"type":"string","uniqueKey":"unset.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"unset","typeLabel":"string[]"},"values":{"type":"object","description":"The fields to change, each keyed by its `name` in the JSON its `storage` takes. Fields left out keep their values. To add items to a list field or remove them without replacing it, use `list_add` and `list_remove`. `null` clears a field. Every value is checked against its field before anything is written, and a value of the wrong shape is refused (422 `wrong_shape`).\n\n| `storage` | Write | Example |\n| --- | --- | --- |\n| `string`, `text` | A string. | `\"Elm Court\"` |\n| `url` | An absolute `http` or `https` URL. | `\"https://elmcourt.example.com\"` |\n| `phone` | A phone number, as a string. | `\"+1 (512) 555-0100\"` |\n| `int` | A whole number. | `24` |\n| `decimal`, `number`, or a unit such as `USD` | A number, in the field's `unit`: dollars, not cents. A percent is a fraction. | `3200000`, `0.0625` |\n| `bool` | `true` or `false`. | `true` |\n| `timestamp` | An RFC 3339 time, a date (midnight UTC), or epoch seconds as a number. | `\"2024-03-01T15:30:00Z\"`, `\"2024-03-01\"`, `1709251200` |\n| `single_select` | One of the field's `allowed_values`: the value, never its label (else 422 `not_an_option`). | `\"under_contract\"` |\n| `multi_select` | An array of `allowed_values`, each at most once. | `[\"pool\", \"gym\"]` |\n| `string_list` | An array of strings; of `allowed_values` when the field lists any. | `[\"north\", \"east\"]` |\n| `personal_name` | An object with `first_name` and `last_name`; a middle name or initial goes in `first_name`. `full_name` may be left out, and if sent must be the two joined by a space. | `{\"first_name\": \"Jane Q.\", \"last_name\": \"Doe\"}` |\n| `location` | An object with any of `street_address`, `city`, `state`, `postal_code` and `country`, each a string. | `{\"street_address\": \"12 Elm St\", \"city\": \"Austin\", \"state\": \"TX\", \"postal_code\": \"78701\", \"country\": \"US\"}` |\n| `ref(\u003ctype_id>)`, `ref(user)` | One record id of that type, or a person's user id (look one up by email with `GET /v1/users`). A field naming several types, such as `ref(company,person)`, takes an id of any of them. | `\"6650a1f4c2e9b81d3f0e7a12\"` |\n| `ref_list(\u003ctype_id>)`, `ref_list(user)` | An array of ids, at most 500, each at most once. | `[\"6650a1f4c2e9b81d3f0e7a12\", \"6650a1f4c2e9b81d3f0e7a13\"]` |\n| `image` | An object naming, by `id`, a file already uploaded to the organization. This API does not upload files. | `{\"id\": \"6650d5e3b1f8a92c4e0d6b31\"}` |","additionalProperties":true,"uniqueKey":"values","typeLabel":"object"}},"type":"object","uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"required":true,"exampleType":"examples"},"responses":{"b0586945-fd4c-4f1a-ac22-d5606dabb6a0":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"deleted_id":{"description":"A delete's answer: the id removed, once it is gone.","type":"string","uniqueKey":"deleted_id","typeLabel":"string"},"disposition":{"description":"A create's answer: `created`, or `existing` when `unique_by` matched a record, which is answered unchanged.","type":"string","uniqueKey":"disposition","typeLabel":"string"},"next_cursor":{"description":"Send it as `cursor` for the next page. Empty on the last page.","type":"string","uniqueKey":"next_cursor","typeLabel":"string"},"records":{"description":"The records: a page of a listing or query, or the one record a get or write answers.","items":{"additionalProperties":false,"properties":{"created_at":{"format":"date-time","type":"string","uniqueKey":"records.items.[INDEX].created_at","typeLabel":"string\u003cdate-time>"},"created_by":{"type":"string","uniqueKey":"records.items.[INDEX].created_by","typeLabel":"string"},"id":{"type":"string","uniqueKey":"records.items.[INDEX].id","typeLabel":"string"},"label":{"type":"string","uniqueKey":"records.items.[INDEX].label","typeLabel":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"ids":{"description":"The records to link, by id.","items":{"type":"string","uniqueKey":"records.items.[INDEX].links.additionalProperties.ids.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"records.items.[INDEX].links.additionalProperties.ids","typeLabel":"string[]"}},"type":"object","uniqueKey":"records.items.[INDEX].links.additionalProperties","typeLabel":"object"},"type":"object","uniqueKey":"records.items.[INDEX].links","typeLabel":"object"},"locked":{"type":"boolean","uniqueKey":"records.items.[INDEX].locked","typeLabel":"boolean"},"revision":{"oneOf":[{"format":"int64","type":"string","uniqueKey":"records.items.[INDEX].revision.oneOf.0","typeLabel":"string\u003cint64>"},{"format":"int64","type":"integer","uniqueKey":"records.items.[INDEX].revision.oneOf.1","typeLabel":"integer\u003cint64>"}],"uniqueKey":"records.items.[INDEX].revision","typeLabel":"string\u003cint64> | integer\u003cint64>"},"type_id":{"type":"string","uniqueKey":"records.items.[INDEX].type_id","typeLabel":"string"},"updated_at":{"format":"date-time","type":"string","uniqueKey":"records.items.[INDEX].updated_at","typeLabel":"string\u003cdate-time>"},"updated_by":{"type":"string","uniqueKey":"records.items.[INDEX].updated_by","typeLabel":"string"},"values":{"type":"object","description":"The record's fields, keyed by `name`, in the JSON they are written in (see a create's `values`), except that a timestamp reads as an RFC 3339 time, a `personal_name` adds `full_name`, a `location` adds `display` (its parts joined in one line), and an `image` reads as an object describing the file.","additionalProperties":true,"uniqueKey":"records.items.[INDEX].values","typeLabel":"object"}},"type":"object","uniqueKey":"records.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"records","typeLabel":"object[]"},"summary":{"type":"object","description":"With `aggregates` or `group`: `{\"aggregates\": [{\"field\", \"op\", \"value\", \"error\"}], \"groups\": [{\"value\", \"count\", \"aggregates\": […]}], \"groups_truncated\"}`. `aggregates` are in the order asked, over every match, not only this page. A count is 0 when nothing matches; a `sum`, `average`, `min` or `max` is `null` when no match has a value. `groups` has one entry per value of the group field, in ascending order (records with no value form a group whose `value` is `null`), at most 200, with `groups_truncated` set past that. Sent again on every page.","additionalProperties":true,"uniqueKey":"summary","typeLabel":"object"},"total_count":{"oneOf":[{"description":"How many records the query matched in all, as a string. An unsorted listing or query sends it on its first page only; a sorted or summarizing query sends it on every page. Absent on a get or a write.","format":"int64","type":"string","uniqueKey":"total_count.oneOf.0","typeLabel":"string\u003cint64>"},{"description":"How many records the query matched in all, as a string. An unsorted listing or query sends it on its first page only; a sorted or summarizing query sends it on every page. Absent on a get or a write.","format":"int64","type":"integer","uniqueKey":"total_count.oneOf.1","typeLabel":"integer\u003cint64>"}],"uniqueKey":"total_count","typeLabel":"string\u003cint64> | integer\u003cint64>"},"written_id":{"description":"A create's or update's answer: the record written. Also in `records`, unless the write itself took the record out of your sight.","type":"string","uniqueKey":"written_id","typeLabel":"string"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"deleted_id":"\u003cstring>","disposition":"\u003cstring>","next_cursor":"\u003cstring>","records":[{"created_at":"2023-11-07T05:31:56Z","created_by":"\u003cstring>","id":"\u003cstring>","label":"\u003cstring>","links":{},"locked":true,"revision":"\u003cstring>","type_id":"\u003cstring>","updated_at":"2023-11-07T05:31:56Z","updated_by":"\u003cstring>","values":{}}],"summary":{},"total_count":"\u003cstring>","written_id":"\u003cstring>"}}},"exampleType":"generated"}},"description":"Answered.","headers":{"Idempotent-Replayed":{"description":"`true` when this is a recorded answer to an earlier request with the same Idempotency-Key, answered again without running the write.","schema":{"enum":["true"],"type":"string"}},"Object-Model-Version":{"description":"The model version the request was served under.","schema":{"type":"integer"}},"X-Request-Id":{"description":"The request's id: quote it when you contact support. Absent on a request refused before it ran, such as one with a bad key or a malformed body.","schema":{"type":"string"}}},"exampleType":"generated"},"9b4c7b4d-db86-4607-b07d-809d5b36ea4d":{"content":{"application/json":{"schema":{"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"status":{"const":"failed","type":"string","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"details":{"additionalProperties":{"type":"string","uniqueKey":"details.additionalProperties","typeLabel":"string"},"type":"object","uniqueKey":"details","typeLabel":"object"},"path":{"type":"string","uniqueKey":"path","typeLabel":"string"},"request_id":{"type":"string","uniqueKey":"request_id","typeLabel":"string"},"result":{"description":"The operation's own result, when a declined operation has one: what it did before it stopped. An action that stopped part way (`partial`) carries its `instance_id`, the records it created, its `fact_ids` and `field_outcomes` here — the steps that committed. Same shape as the route's 200 body.","type":"object","uniqueKey":"result","typeLabel":"object"}},"required":["status","code","error"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","error":"\u003cstring>","status":"failed","details":{},"path":"\u003cstring>","request_id":"\u003cstring>","result":{}}}},"exampleType":"generated"}},"description":"Malformed JSON, an unknown field, an unknown query parameter, one naming a field the route fixes, or a malformed Idempotency-Key (code `invalid_request`); a write with no Idempotency-Key (code `idempotency_key_required`).","headers":{"X-Request-Id":{"description":"The request's id: quote it when you contact support. Absent on a request refused before it ran, such as one with a bad key or a malformed body.","schema":{"type":"string"}}},"exampleType":"generated"},"277c7d5d-6a47-4704-a98f-97462a51c771":{"content":{"application/json":{"schema":{"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"status":{"const":"failed","type":"string","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"details":{"additionalProperties":{"type":"string","uniqueKey":"details.additionalProperties","typeLabel":"string"},"type":"object","uniqueKey":"details","typeLabel":"object"},"path":{"type":"string","uniqueKey":"path","typeLabel":"string"},"request_id":{"type":"string","uniqueKey":"request_id","typeLabel":"string"},"result":{"description":"The operation's own result, when a declined operation has one: what it did before it stopped. An action that stopped part way (`partial`) carries its `instance_id`, the records it created, its `fact_ids` and `field_outcomes` here — the steps that committed. Same shape as the route's 200 body.","type":"object","uniqueKey":"result","typeLabel":"object"}},"required":["status","code","error"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","error":"\u003cstring>","status":"failed","details":{},"path":"\u003cstring>","request_id":"\u003cstring>","result":{}}}},"exampleType":"generated"}},"description":"Missing, invalid or expired API key.","headers":{"X-Request-Id":{"description":"The request's id: quote it when you contact support. Absent on a request refused before it ran, such as one with a bad key or a malformed body.","schema":{"type":"string"}}},"exampleType":"generated"},"e8ab044d-730e-49fa-af8c-cb92222f2ef3":{"content":{"application/json":{"schema":{"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"status":{"const":"failed","type":"string","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"details":{"additionalProperties":{"type":"string","uniqueKey":"details.additionalProperties","typeLabel":"string"},"type":"object","uniqueKey":"details","typeLabel":"object"},"path":{"type":"string","uniqueKey":"path","typeLabel":"string"},"request_id":{"type":"string","uniqueKey":"request_id","typeLabel":"string"},"result":{"description":"The operation's own result, when a declined operation has one: what it did before it stopped. An action that stopped part way (`partial`) carries its `instance_id`, the records it created, its `fact_ids` and `field_outcomes` here — the steps that committed. Same shape as the route's 200 body.","type":"object","uniqueKey":"result","typeLabel":"object"}},"required":["status","code","error"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","error":"\u003cstring>","status":"failed","details":{},"path":"\u003cstring>","request_id":"\u003cstring>","result":{}}}},"exampleType":"generated"}},"description":"The key lacks the scope (`scope_required`), the person lacks the permission (`forbidden`), or a feature the request needs is not enabled for the organization (`not_enabled`).","headers":{"X-Request-Id":{"description":"The request's id: quote it when you contact support. Absent on a request refused before it ran, such as one with a bad key or a malformed body.","schema":{"type":"string"}}},"exampleType":"generated"},"5cff666d-ec1b-41fa-b685-d12e86ace701":{"content":{"application/json":{"schema":{"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"status":{"const":"failed","type":"string","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"details":{"additionalProperties":{"type":"string","uniqueKey":"details.additionalProperties","typeLabel":"string"},"type":"object","uniqueKey":"details","typeLabel":"object"},"path":{"type":"string","uniqueKey":"path","typeLabel":"string"},"request_id":{"type":"string","uniqueKey":"request_id","typeLabel":"string"},"result":{"description":"The operation's own result, when a declined operation has one: what it did before it stopped. An action that stopped part way (`partial`) carries its `instance_id`, the records it created, its `fact_ids` and `field_outcomes` here — the steps that committed. Same shape as the route's 200 body.","type":"object","uniqueKey":"result","typeLabel":"object"}},"required":["status","code","error"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","error":"\u003cstring>","status":"failed","details":{},"path":"\u003cstring>","request_id":"\u003cstring>","result":{}}}},"exampleType":"generated"}},"description":"No such record, or one this caller cannot see — the same answer on purpose.","headers":{"Idempotent-Replayed":{"description":"`true` when this is a recorded answer to an earlier request with the same Idempotency-Key, answered again without running the write.","schema":{"enum":["true"],"type":"string"}},"X-Request-Id":{"description":"The request's id: quote it when you contact support. Absent on a request refused before it ran, such as one with a bad key or a malformed body.","schema":{"type":"string"}}},"exampleType":"generated"},"2de1eb32-82b2-46fa-8b31-71ffff1cf233":{"content":{"application/json":{"examples":{"idempotency_key_reused":{"title":"idempotency_key_reused","summary":"The key was used for a different request","value":{"code":"idempotency_key_reused","error":"this Idempotency-Key was used for a different request; send a new key for a new request","status":"failed"}},"request_in_progress":{"title":"request_in_progress","summary":"A concurrent duplicate: the first request with this key is still running","value":{"code":"request_in_progress","error":"a request with this Idempotency-Key is still running; retry after it finishes to get its answer","status":"failed"}}},"schema":{"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"status":{"const":"failed","type":"string","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"details":{"additionalProperties":{"type":"string","uniqueKey":"details.additionalProperties","typeLabel":"string"},"type":"object","uniqueKey":"details","typeLabel":"object"},"path":{"type":"string","uniqueKey":"path","typeLabel":"string"},"request_id":{"type":"string","uniqueKey":"request_id","typeLabel":"string"},"result":{"description":"The operation's own result, when a declined operation has one: what it did before it stopped. An action that stopped part way (`partial`) carries its `instance_id`, the records it created, its `fact_ids` and `field_outcomes` here — the steps that committed. Same shape as the route's 200 body.","type":"object","uniqueKey":"result","typeLabel":"object"}},"required":["status","code","error"],"type":"object","uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"description":"`idempotency_key_reused`: this Idempotency-Key was used for a different request. `request_in_progress`: a request with this key is still running; retry after Retry-After to get its answer.","headers":{"Idempotent-Replayed":{"description":"`true` when this is a recorded answer to an earlier request with the same Idempotency-Key, answered again without running the write.","schema":{"enum":["true"],"type":"string"}},"Retry-After":{"description":"With `request_in_progress`: seconds to wait before retrying.","schema":{"type":"integer"}},"X-Request-Id":{"description":"The request's id: quote it when you contact support. Absent on a request refused before it ran, such as one with a bad key or a malformed body.","schema":{"type":"string"}}},"exampleType":"examples"},"054e3800-9f60-4ccc-86e6-17613360cd95":{"content":{"application/json":{"schema":{"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"status":{"const":"failed","type":"string","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"details":{"additionalProperties":{"type":"string","uniqueKey":"details.additionalProperties","typeLabel":"string"},"type":"object","uniqueKey":"details","typeLabel":"object"},"path":{"type":"string","uniqueKey":"path","typeLabel":"string"},"request_id":{"type":"string","uniqueKey":"request_id","typeLabel":"string"},"result":{"description":"The operation's own result, when a declined operation has one: what it did before it stopped. An action that stopped part way (`partial`) carries its `instance_id`, the records it created, its `fact_ids` and `field_outcomes` here — the steps that committed. Same shape as the route's 200 body.","type":"object","uniqueKey":"result","typeLabel":"object"}},"required":["status","code","error"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","error":"\u003cstring>","status":"failed","details":{},"path":"\u003cstring>","request_id":"\u003cstring>","result":{}}}},"exampleType":"generated"}},"description":"The record is not at the revision If-Match named (code `revision_mismatch`; `details.current_revision` says which it is), on arrival or because another change landed first. Nothing was applied: read the record again and send the change against its current revision.","headers":{"Idempotent-Replayed":{"description":"`true` when this is a recorded answer to an earlier request with the same Idempotency-Key, answered again without running the write.","schema":{"enum":["true"],"type":"string"}},"X-Request-Id":{"description":"The request's id: quote it when you contact support. Absent on a request refused before it ran, such as one with a bad key or a malformed body.","schema":{"type":"string"}}},"exampleType":"generated"},"3001903f-23d6-4d95-9068-7d15d31323b0":{"content":{"application/json":{"schema":{"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"status":{"const":"failed","type":"string","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"details":{"additionalProperties":{"type":"string","uniqueKey":"details.additionalProperties","typeLabel":"string"},"type":"object","uniqueKey":"details","typeLabel":"object"},"path":{"type":"string","uniqueKey":"path","typeLabel":"string"},"request_id":{"type":"string","uniqueKey":"request_id","typeLabel":"string"},"result":{"description":"The operation's own result, when a declined operation has one: what it did before it stopped. An action that stopped part way (`partial`) carries its `instance_id`, the records it created, its `fact_ids` and `field_outcomes` here — the steps that committed. Same shape as the route's 200 body.","type":"object","uniqueKey":"result","typeLabel":"object"}},"required":["status","code","error"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","error":"\u003cstring>","status":"failed","details":{},"path":"\u003cstring>","request_id":"\u003cstring>","result":{}}}},"exampleType":"generated"}},"description":"The body is over 8 MiB.","headers":{"X-Request-Id":{"description":"The request's id: quote it when you contact support. Absent on a request refused before it ran, such as one with a bad key or a malformed body.","schema":{"type":"string"}}},"exampleType":"generated"},"10986eba-969b-4cff-b11f-ecaafff48299":{"content":{"application/json":{"schema":{"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"status":{"const":"failed","type":"string","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"details":{"additionalProperties":{"type":"string","uniqueKey":"details.additionalProperties","typeLabel":"string"},"type":"object","uniqueKey":"details","typeLabel":"object"},"path":{"type":"string","uniqueKey":"path","typeLabel":"string"},"request_id":{"type":"string","uniqueKey":"request_id","typeLabel":"string"},"result":{"description":"The operation's own result, when a declined operation has one: what it did before it stopped. An action that stopped part way (`partial`) carries its `instance_id`, the records it created, its `fact_ids` and `field_outcomes` here — the steps that committed. Same shape as the route's 200 body.","type":"object","uniqueKey":"result","typeLabel":"object"}},"required":["status","code","error"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","error":"\u003cstring>","status":"failed","details":{},"path":"\u003cstring>","request_id":"\u003cstring>","result":{}}}},"exampleType":"generated"}},"description":"Understood and declined: validation, a guard, a decided field, a deletion policy, a wall. `result` carries what the operation did before it stopped, when it did anything. Codes: `unknown_field`: the type declares no such field, or it is archived; `not_an_option`: the value is not one of the field's options; `wrong_shape`: the field cannot hold the value: text for a number, one value where a list belongs or a list where one value does, a malformed date, URL, phone number or record id; `required`: a required field is missing, empty or cleared; `not_unique`: another record of the type already holds the value in a unique field; `fixed_after_create`: the field cannot change once the record exists; `conflicting_changes`: one field is both set or cleared and changed by items. `path` points at the field (`/values/\u003cfield>`, `/unset/\u003cindex>`, `/list_add/\u003cfield>`, `/list_remove/\u003cfield>`). Anything else declined — a guard, a decided field, a wall, a locked record — is `refused`.","headers":{"Idempotent-Replayed":{"description":"`true` when this is a recorded answer to an earlier request with the same Idempotency-Key, answered again without running the write.","schema":{"enum":["true"],"type":"string"}},"X-Request-Id":{"description":"The request's id: quote it when you contact support. Absent on a request refused before it ran, such as one with a bad key or a malformed body.","schema":{"type":"string"}}},"x-codes":["unknown_field","not_an_option","wrong_shape","required","not_unique","fixed_after_create","conflicting_changes"],"exampleType":"generated"},"c776e6ad-e74f-447c-9731-828bcbb9875e":{"content":{"application/json":{"schema":{"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"status":{"const":"failed","type":"string","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"details":{"additionalProperties":{"type":"string","uniqueKey":"details.additionalProperties","typeLabel":"string"},"type":"object","uniqueKey":"details","typeLabel":"object"},"path":{"type":"string","uniqueKey":"path","typeLabel":"string"},"request_id":{"type":"string","uniqueKey":"request_id","typeLabel":"string"},"result":{"description":"The operation's own result, when a declined operation has one: what it did before it stopped. An action that stopped part way (`partial`) carries its `instance_id`, the records it created, its `fact_ids` and `field_outcomes` here — the steps that committed. Same shape as the route's 200 body.","type":"object","uniqueKey":"result","typeLabel":"object"}},"required":["status","code","error"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","error":"\u003cstring>","status":"failed","details":{},"path":"\u003cstring>","request_id":"\u003cstring>","result":{}}}},"exampleType":"generated"}},"description":"Rate limited. Retry-After says when to try again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-Request-Id":{"description":"The request's id: quote it when you contact support. Absent on a request refused before it ran, such as one with a bad key or a malformed body.","schema":{"type":"string"}}},"exampleType":"generated"},"f170d228-261f-44dd-8c88-dc94bd330e34":{"content":{"application/json":{"schema":{"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"status":{"const":"failed","type":"string","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"details":{"additionalProperties":{"type":"string","uniqueKey":"details.additionalProperties","typeLabel":"string"},"type":"object","uniqueKey":"details","typeLabel":"object"},"path":{"type":"string","uniqueKey":"path","typeLabel":"string"},"request_id":{"type":"string","uniqueKey":"request_id","typeLabel":"string"},"result":{"description":"The operation's own result, when a declined operation has one: what it did before it stopped. An action that stopped part way (`partial`) carries its `instance_id`, the records it created, its `fact_ids` and `field_outcomes` here — the steps that committed. Same shape as the route's 200 body.","type":"object","uniqueKey":"result","typeLabel":"object"}},"required":["status","code","error"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","error":"\u003cstring>","status":"failed","details":{},"path":"\u003cstring>","request_id":"\u003cstring>","result":{}}}},"exampleType":"generated"}},"description":"The request could not be recorded under its Idempotency-Key, so it was not run (code `idempotency_unavailable`). Retry it with the same key.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-Request-Id":{"description":"The request's id: quote it when you contact support. Absent on a request refused before it ran, such as one with a bad key or a malformed body.","schema":{"type":"string"}}},"exampleType":"generated"},"aba53b1e-26a2-4cfe-8ccc-f5bf80248692":{"content":{"application/json":{"schema":{"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"status":{"const":"failed","type":"string","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"details":{"additionalProperties":{"type":"string","uniqueKey":"details.additionalProperties","typeLabel":"string"},"type":"object","uniqueKey":"details","typeLabel":"object"},"path":{"type":"string","uniqueKey":"path","typeLabel":"string"},"request_id":{"type":"string","uniqueKey":"request_id","typeLabel":"string"},"result":{"description":"The operation's own result, when a declined operation has one: what it did before it stopped. An action that stopped part way (`partial`) carries its `instance_id`, the records it created, its `fact_ids` and `field_outcomes` here — the steps that committed. Same shape as the route's 200 body.","type":"object","uniqueKey":"result","typeLabel":"object"}},"required":["status","code","error"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","error":"\u003cstring>","status":"failed","details":{},"path":"\u003cstring>","request_id":"\u003cstring>","result":{}}}},"exampleType":"generated"}},"description":"No answer in time. A write may have landed: retry with the same Idempotency-Key.","headers":{"X-Request-Id":{"description":"The request's id: quote it when you contact support. Absent on a request refused before it ran, such as one with a bad key or a malformed body.","schema":{"type":"string"}}},"exampleType":"generated"}},"security":{"98ed960d-6427-4c9d-b01d-8b53b66b07fc":{"apiKey":{"description":"An API key issued with object_model scopes: Authorization: Bearer sk_…. The scopes: object_model:records:read, object_model:records:write, object_model:facts:read, object_model:facts:write, object_model:model:read, object_model:model:configure, object_model:actions:run, object_model:changes:read. An operation's `security` lists the scopes it needs; several entries mean any one of them will do. A person field (`ref(user)`, `ref_list(user)`) holds a user id: look people up by email or id with `GET /v1/users`, outside this API, with a key that also has `users:read`.","scheme":"bearer","type":"http","scopes":["object_model:records:write"],"schemeName":"apiKey"}}},"servers":{"21882d02-359c-4852-99ad-7e493557f05d":{"url":"https://api.vectorshift.ai"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"description":"An API key issued with object_model scopes: Authorization: Bearer sk_…. The scopes: object_model:records:read, object_model:records:write, object_model:facts:read, object_model:facts:write, object_model:model:read, object_model:model:configure, object_model:actions:run, object_model:changes:read. An operation's `security` lists the scopes it needs; several entries mean any one of them will do. A person field (`ref(user)`, `ref_list(user)`) holds a user id: look people up by email or id with `GET /v1/users`, outside this API, with a key that also has `users:read`.","scheme":"bearer","type":"http","scopes":["object_model:records:write"],"schemeName":"apiKey"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"An API key issued with object_model scopes: Authorization: Bearer sk_…. The scopes: object_model:records:read, object_model:records:write, object_model:facts:read, object_model:facts:write, object_model:model:read, object_model:model:configure, object_model:actions:run, object_model:changes:read. An operation's `security` lists the scopes it needs; several entries mean any one of them will do. A person field (`ref(user)`, `ref_list(user)`) holds a user id: look people up by email or id with `GET /v1/users`, outside this API, with a key that also has `users:read`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"apiKey","name":"Authorization"}],"title":"apiKey"}]},"originalFileLocation":"ontology/openapi.json"},"subdomain":"vectorshift","siteName":"VectorShift","title":"Update a record - VectorShift","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-26T14:53:12.596Z","originalFileLocation":"ontology/records/update.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Set fields, clear fields, add or remove items of list fields, add links, remove links. If-Match names the revision the change was written against. Answers with written_id and the record, which is absent when the write took it out of the caller\u0026#x27;s sight. Re-sent under the same Idempotency-Key: The update is one write, recorded under the key and what it asks: field changes, list items and link edits apply together or not at all, and re-sent, none of them applies again, so an item or link removed since by another request stays removed. That holds for an item change that changed nothing (an item the list already held). A change that applied is answered as applied however the record\u0026#x27;s revision has moved since: If-Match guards its first application only. A different body under the key is refused (409 idempotency_key_reused) while the key is kept, and applied as a new change after that.\">\u003cmeta data-mint-head name=\"application-name\" content=\"VectorShift\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/vectorshift/TwRU3RaBNwnTjf5H/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/vectorshift/TwRU3RaBNwnTjf5H/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/vectorshift/TwRU3RaBNwnTjf5H/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/vectorshift/TwRU3RaBNwnTjf5H/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/vectorshift/TwRU3RaBNwnTjf5H/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/vectorshift/TwRU3RaBNwnTjf5H/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/vectorshift/TwRU3RaBNwnTjf5H/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/vectorshift/TwRU3RaBNwnTjf5H/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/vectorshift/TwRU3RaBNwnTjf5H/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update a record - VectorShift\">\u003cmeta data-mint-head property=\"og:description\" content=\"Set fields, clear fields, add or remove items of list fields, add links, remove links. If-Match names the revision the change was written against. Answers with written_id and the record, which is absent when the write took it out of the caller\u0026#x27;s sight. Re-sent under the same Idempotency-Key: The update is one write, recorded under the key and what it asks: field changes, list items and link edits apply together or not at all, and re-sent, none of them applies again, so an item or link removed since by another request stays removed. That holds for an item change that changed nothing (an item the list already held). A change that applied is answered as applied however the record\u0026#x27;s revision has moved since: If-Match guards its first application only. A different body under the key is refused (409 idempotency_key_reused) while the key is kept, and applied as a new change after that.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"VectorShift\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.vectorshift.ai/ontology/records/update\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://vectorshift.mintlify.site/logo/vectorshift-logo.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Update a record - VectorShift\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Set fields, clear fields, add or remove items of list fields, add links, remove links. If-Match names the revision the change was written against. Answers with written_id and the record, which is absent when the write took it out of the caller\u0026#x27;s sight. Re-sent under the same Idempotency-Key: The update is one write, recorded under the key and what it asks: field changes, list items and link edits apply together or not at all, and re-sent, none of them applies again, so an item or link removed since by another request stays removed. That holds for an item change that changed nothing (an item the list already held). A change that applied is answered as applied however the record\u0026#x27;s revision has moved since: If-Match guards its first application only. A different body under the key is refused (409 idempotency_key_reused) while the key is kept, and applied as a new change after that.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://vectorshift.mintlify.site/logo/vectorshift-logo.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/vectorshift/TwRU3RaBNwnTjf5H/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"VectorShift\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366f1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.vectorshift.ai/ontology/records/update\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/ontology/records/update.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.vectorshift.ai/#organization\",\"name\":\"VectorShift\",\"url\":\"https://docs.vectorshift.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/vectorshift/ko1lD3nuBSgpmLV4/logo/vectorshift-logo.png?fit=max\u0026auto=format\u0026n=ko1lD3nuBSgpmLV4\u0026q=85\u0026s=0b909e21221badbcd2332ad0c7b06a8e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.vectorshift.ai#website\",\"name\":\"VectorShift\",\"url\":\"https://docs.vectorshift.ai\",\"publisher\":{\"@id\":\"https://docs.vectorshift.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.vectorshift.ai/ontology/records/update#webpage\",\"url\":\"https://docs.vectorshift.ai/ontology/records/update\",\"name\":\"Update a record\",\"description\":\"Set fields, clear fields, add or remove items of list fields, add links, remove links. If-Match names the revision the change was written against. Answers with written_id and the record, which is absent when the write took it out of the caller's sight. Re-sent under the same Idempotency-Key: The update is one write, recorded under the key and what it asks: field changes, list items and link edits apply together or not at all, and re-sent, none of them applies again, so an item or link removed since by another request stays removed. That holds for an item change that changed nothing (an item the list already held). A change that applied is answered as applied however the record's revision has moved since: If-Match guards its first application only. A different body under the key is refused (409 idempotency_key_reused) while the key is kept, and applied as a new change after that.\",\"dateModified\":\"2026-11-26T14:53:12.596Z\",\"isPartOf\":{\"@id\":\"https://docs.vectorshift.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.vectorshift.ai/ontology/records/update#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.vectorshift.ai/ontology/records/update#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Records\",\"item\":\"https://docs.vectorshift.ai/ontology/records/list\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Update a record\",\"item\":\"https://docs.vectorshift.ai/ontology/records/update\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.vectorshift.ai/ontology/records/update#apireference\",\"headline\":\"Update a record\",\"name\":\"Update a record\",\"description\":\"Set fields, clear fields, add or remove items of list fields, add links, remove links. If-Match names the revision the change was written against. Answers with written_id and the record, which is absent when the write took it out of the caller's sight. Re-sent under the same Idempotency-Key: The update is one write, recorded under the key and what it asks: field changes, list items and link edits apply together or not at all, and re-sent, none of them applies again, so an item or link removed since by another request stays removed. That holds for an item change that changed nothing (an item the list already held). A change that applied is answered as applied however the record's revision has moved since: If-Match guards its first application only. A different body under the key is refused (409 idempotency_key_reused) while the key is kept, and applied as a new change after that.\",\"url\":\"https://docs.vectorshift.ai/ontology/records/update\",\"mainEntityOfPage\":{\"@id\":\"https://docs.vectorshift.ai/ontology/records/update#webpage\"},\"image\":\"https://docs.vectorshift.ai/logo/vectorshift-logo.png\",\"dateModified\":\"2026-11-26T14:53:12.596Z\",\"publisher\":{\"@id\":\"https://docs.vectorshift.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.vectorshift.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"VectorShift\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"VectorShift\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/ontology/records/update.md","siteName":"VectorShift","nav":{"global":{"anchors":[{"anchor":"Book a Demo","icon":"calendar","href":"https://calendly.com/albert_mao/vectorshift-intro-chat"},{"anchor":"Changelog","icon":"history","href":"https://vectorshift.ai/blog?tag=changelog"},{"anchor":"Blog","icon":"newspaper","href":"https://vectorshift.ai/blog"},{"anchor":"Tutorials","icon":"youtube","href":"https://www.youtube.com/@VectorShiftAI"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/overview"}]},{"tab":"Ontology","groups":[{"group":"Get Started","pages":[{"title":"Ontology API","sidebarTitle":"Overview","href":"/ontology/overview"},{"title":"Authentication and scopes","href":"/ontology/authentication"}]},{"group":"Guides","pages":[{"title":"Working with your schema","sidebarTitle":"Working with your schema","href":"/ontology/working-with-your-schema"},{"title":"Field types","href":"/ontology/field-types"},{"title":"Idempotency","href":"/ontology/idempotency"},{"title":"Record filters","href":"/ontology/record-filters"},{"title":"Syncing with the change feed","sidebarTitle":"Syncing changes","href":"/ontology/change-feed"}]},{"group":"Schema","pages":[{"title":"Get the ontology summary","openapi":"ontology/openapi.json GET /v1/object-model","href":"/ontology/schema/summary"},{"title":"Get the schema","openapi":"ontology/openapi.json GET /v1/object-model/schema","href":"/ontology/schema/get"}]},{"group":"Records","pages":[{"title":"List records","openapi":"ontology/openapi.json GET /v1/object-model/records/{type_id}","href":"/ontology/records/list"},{"title":"Query records","openapi":"ontology/openapi.json POST /v1/object-model/records/{type_id}/query","href":"/ontology/records/query"},{"title":"Search records","openapi":"ontology/openapi.json POST /v1/object-model/record-search","href":"/ontology/records/search"},{"title":"Get a record","openapi":"ontology/openapi.json GET /v1/object-model/records/{type_id}/{record_id}","href":"/ontology/records/get"},{"title":"Create a record","openapi":"ontology/openapi.json POST /v1/object-model/records/{type_id}","description":"Create a record from plain values, or return the existing one: with unique_by, a record that matches on those fields is returned unchanged and the supplied values are not applied (disposition says which). Answers with written_id and the record.\n\n**Re-sent under the same Idempotency-Key:** The key stays with the record it created: re-sent, it answers that record and creates none; a different body under the key is refused.","href":"/ontology/records/create"},{"title":"Update a record","openapi":"ontology/openapi.json PATCH /v1/object-model/records/{type_id}/{record_id}","href":"/ontology/records/update"},{"title":"Delete a record","openapi":"ontology/openapi.json DELETE /v1/object-model/records/{type_id}/{record_id}","description":"Delete a record under its type's deletion policy (the default refuses while links remain).\n\n**Re-sent under the same Idempotency-Key:** Exactly once in effect: re-sent after the record is gone, it answers 404 `not_found`.","href":"/ontology/records/delete"},{"title":"List related records","openapi":"ontology/openapi.json GET /v1/object-model/records/{type_id}/{record_id}/related/{relation_id}","href":"/ontology/records/related"},{"title":"Get record activity","openapi":"ontology/openapi.json GET /v1/object-model/records/{type_id}/{record_id}/activity","href":"/ontology/records/activity"},{"title":"Query record activity","openapi":"ontology/openapi.json POST /v1/object-model/records/{type_id}/{record_id}/activity/query","href":"/ontology/records/activity-query"},{"title":"Get record evidence","openapi":"ontology/openapi.json GET /v1/object-model/records/{type_id}/{record_id}/evidence","href":"/ontology/records/evidence"}]},{"group":"Record Write Jobs","pages":[{"title":"Start a write job","openapi":"ontology/openapi.json POST /v1/object-model/record-write-jobs","href":"/ontology/record-write-jobs/start"},{"title":"Upload a part","openapi":"ontology/openapi.json POST /v1/object-model/record-write-jobs/{job_id}/parts","href":"/ontology/record-write-jobs/upload-part"},{"title":"Seal a job","openapi":"ontology/openapi.json POST /v1/object-model/record-write-jobs/{job_id}/seal","href":"/ontology/record-write-jobs/seal"},{"title":"Get a job","openapi":"ontology/openapi.json GET /v1/object-model/record-write-jobs/{job_id}","href":"/ontology/record-write-jobs/get"},{"title":"List item results","openapi":"ontology/openapi.json GET /v1/object-model/record-write-jobs/{job_id}/results","href":"/ontology/record-write-jobs/results"},{"title":"Cancel a job","openapi":"ontology/openapi.json POST /v1/object-model/record-write-jobs/{job_id}/cancel","href":"/ontology/record-write-jobs/cancel"}]},{"group":"Actions","pages":[{"title":"List actions","openapi":"ontology/openapi.json GET /v1/object-model/actions","href":"/ontology/actions/list"},{"title":"Run an action","openapi":"ontology/openapi.json POST /v1/object-model/actions/{action_id}/run","href":"/ontology/actions/run"},{"title":"Run actions in a batch","openapi":"ontology/openapi.json POST /v1/object-model/actions/batch","href":"/ontology/actions/batch"},{"title":"Get a decision","openapi":"ontology/openapi.json GET /v1/object-model/decisions/{decision_id}","href":"/ontology/actions/decision"}]},{"group":"Facts and Figures","pages":[{"title":"List facts","openapi":"ontology/openapi.json GET /v1/object-model/facts","href":"/ontology/facts/list"},{"title":"Query facts","openapi":"ontology/openapi.json POST /v1/object-model/facts/query","href":"/ontology/facts/query"},{"title":"Record facts","openapi":"ontology/openapi.json POST /v1/object-model/facts","href":"/ontology/facts/record"},{"title":"Withdraw an override","openapi":"ontology/openapi.json POST /v1/object-model/facts/withdraw","href":"/ontology/facts/withdraw"},{"title":"Query figures","openapi":"ontology/openapi.json POST /v1/object-model/figures/query","href":"/ontology/facts/figures-query"},{"title":"Explain a figure","openapi":"ontology/openapi.json POST /v1/object-model/figures/explain","href":"/ontology/facts/figures-explain"}]},{"group":"Scenarios","pages":[{"title":"List scenarios","openapi":"ontology/openapi.json GET /v1/object-model/worlds","href":"/ontology/scenarios/list"},{"title":"Create or rename a scenario","openapi":"ontology/openapi.json PUT /v1/object-model/worlds/{world_id}","href":"/ontology/scenarios/put"},{"title":"Drop a scenario","openapi":"ontology/openapi.json DELETE /v1/object-model/worlds/{world_id}","href":"/ontology/scenarios/delete"}]},{"group":"Imports","pages":[{"title":"Get an import template","openapi":"ontology/openapi.json GET /v1/object-model/imports/{import_id}/template","href":"/ontology/imports/template"},{"title":"Run an import","openapi":"ontology/openapi.json POST /v1/object-model/imports/{import_id}/run","href":"/ontology/imports/run"}]},{"group":"Change Feed","pages":[{"title":"Get the head cursor","openapi":"ontology/openapi.json GET /v1/object-model/changes/cursor","href":"/ontology/changes/cursor"},{"title":"List changes","openapi":"ontology/openapi.json GET /v1/object-model/changes","href":"/ontology/changes/list"},{"title":"Query changes","openapi":"ontology/openapi.json POST /v1/object-model/changes/query","href":"/ontology/changes/query"}]},{"group":"Definition","pages":[{"title":"Create the ontology","openapi":"ontology/openapi.json POST /v1/object-model","href":"/ontology/definition/create"},{"title":"Get the definition","openapi":"ontology/openapi.json GET /v1/object-model/model","href":"/ontology/definition/get"},{"title":"List versions","openapi":"ontology/openapi.json GET /v1/object-model/model/versions","href":"/ontology/definition/versions"},{"title":"Compare versions","openapi":"ontology/openapi.json GET /v1/object-model/model/diff","href":"/ontology/definition/diff"},{"title":"Configure the ontology","openapi":"ontology/openapi.json POST /v1/object-model/model/configure","href":"/ontology/definition/configure"},{"title":"Upgrade the template","openapi":"ontology/openapi.json POST /v1/object-model/model/upgrade","href":"/ontology/definition/upgrade"},{"title":"Revert to an earlier version","openapi":"ontology/openapi.json POST /v1/object-model/model/revert","href":"/ontology/definition/revert"},{"title":"List drafts","openapi":"ontology/openapi.json GET /v1/object-model/model/drafts","href":"/ontology/definition/drafts-list"},{"title":"Open a draft","openapi":"ontology/openapi.json POST /v1/object-model/model/drafts","href":"/ontology/definition/drafts-open"},{"title":"Get a draft","openapi":"ontology/openapi.json GET /v1/object-model/model/drafts/{draft_id}","href":"/ontology/definition/drafts-get"},{"title":"Edit a draft","openapi":"ontology/openapi.json POST /v1/object-model/model/drafts/{draft_id}/edit","href":"/ontology/definition/drafts-edit"},{"title":"Publish a draft","openapi":"ontology/openapi.json POST /v1/object-model/model/drafts/{draft_id}/publish","href":"/ontology/definition/drafts-publish"},{"title":"Discard a draft","openapi":"ontology/openapi.json DELETE /v1/object-model/model/drafts/{draft_id}","href":"/ontology/definition/drafts-discard"}]}]},{"tab":"SDK","pages":[{"title":"SDK","href":"/sdk"}]}]},"basePath":"","title":"Update a record - VectorShift","deploymentId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","buildId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CWRF67qg.js","snippetPresets-BR8BoZAC.js","utils-D5WEoDBM.js","style-to-object-BY3JEAdk.js","utils-B79vXYXV.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-C59iNs-S.js","conditional-requirements-CFM0id0Q.js","cloneDeep-455jK_K_.js","_Uint8Array-BEecbuUl.js","isObject-FP1Yky1u.js","ApiExamples-CFRHL52q.js","usePlaygroundInputsStore-Caip2xMX.js","shallow-BS-qcxmX.js","isEqual-CEpbaqh9.js","CodeSnippets-B-R0FAqw.js","CodeSnippet-Bkkti1IB.js","use-playground-group-access-BLvLSz8w.js","Page-UFatEFaf.js","api-description-markdown-Cny85OC3.js","DynamicMarkdown-Czhs88Hc.js","SectionHeading-B08KBUKT.js","MethodPill-D8OvWg5y.js","getPastedJson-tB5m0_yh.js","Check2Icon-CeP__a4S.js","axios-CsQoIw0U.js","Markdown-LI7DSqeK.js","AssistantPageLink-bYxdsqKl.js","dist-DXTH2WLA.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}