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
      • GETList records
      • POSTCreate record
      • POSTBulk delete records
      • POSTBulk edit records
      • GETExport records as CSV
      • GETGet field values
      • POSTPreview record filter
      • GETDiscover record schema
      • POSTUpload CSV records
      • GETGet record details
      • PUTUpdate record
      • DELDelete record
      • GETGet record costs
      • GETGet record results
      • DELDelete record result
      • GETGet record step results
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: <apiKey>" \
> -H "Content-Type: application/json" \
> -d '{}'
1{
2 "createdAt": "2024-06-01T12:00:00Z",
3 "id": "a1b2c3d4-e5f6-7890-ab12-cd34ef567890",
4 "messages": [
5 null
6 ],
7 "metadata": {},
8 "name": "Customer Support Ticket #12345",
9 "organizationId": "org_987654321",
10 "productSurfaceId": "prod_surface_001",
11 "type": "support_ticket",
12 "updatedAt": "2024-06-02T08:30:00Z",
13 "userId": "user_123456789",
14 "metadataLabels": {},
15 "metadataSchema": {
16 "keys": [
17 "priority",
18 "category",
19 "status"
20 ]
21 }
22}
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.
messageslist of objects or nullOptional
metadatamap from strings to anyOptionalDefaults to {}
namestringOptional1-500 characters
typestringOptional1-255 characters

Response

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

Errors

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