For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dashboard
User GuideDeveloper GuidesAPI Reference
User GuideDeveloper GuidesAPI Reference
    • Overview
  • Runtype API
      • POSTBulk delete records
      • GETList records
      • POSTCreate record
      • GETDiscover record schema
      • GETGet field values
      • POSTPreview record filter
      • GETGet record details
      • PUTUpdate record
      • DELDelete record
      • GETGet record step results
      • GETGet record costs
      • GETGet record results
      • DELDelete record result
      • POSTBulk edit records
      • POSTUpload CSV records
Dashboard
LogoLogo
Runtype APIRecords

Update record

PUT
/v1/records/:id
PUT
/v1/records/:id
$curl -X PUT https://api.runtype.com/v1/records/id \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json" \
> -d '{}'
1{
2 "id": "a1b2c3d4-e5f6-7890-ab12-cd34ef567890",
3 "userId": "user_987654321",
4 "organizationId": "org_123456789",
5 "type": "document",
6 "name": "Project Plan Q3 2024",
7 "metadata": {},
8 "messages": [
9 null
10 ],
11 "productSurfaceId": "prod_surface_001",
12 "createdAt": "2024-06-01T09:15:00Z",
13 "updatedAt": "2024-06-10T16:45:00Z",
14 "metadataSchema": {},
15 "metadataLabels": {}
16}
Update fields on an existing record.
Was this page helpful?
Previous

Delete record

Next
Built with

Authentication

AuthorizationBearer
API key or Clerk session token

Path parameters

idstringRequired

Request

This endpoint expects an object.
typestringOptional1-255 characters
namestringOptional1-500 characters
metadatamap from strings to anyOptionalDefaults to {}
messageslist of objects or nullOptional

Response

Updated record
idstring
userIdstring
organizationIdstring or null
typestring
namestring
metadatamap from strings to any
messageslist of any or null
productSurfaceIdstring or null
createdAtstring
updatedAtstring
metadataSchemamap from strings to any
metadataLabelsmap from strings to any

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
500
Internal Server Error