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
  • Runtype API
      • GETList flows
      • POSTCreate flow
      • GETGet flow details
      • PUTUpdate flow
      • DELDelete flow
      • GETList flow step results
      • POSTPublish flow
      • POSTRun flow on records of a type
      • GETExport flow for runtime
Dashboard
LogoLogo
Runtype APIFlows

Update flow

PUT
/v1/flows/:id
PUT
/v1/flows/:id
$curl -X PUT https://api.runtype.com/v1/flows/id \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json" \
> -d '{}'
1{
2 "id": "flow_9f8b7c6d5e4a3b2c1d0e",
3 "name": "Customer Onboarding Flow",
4 "status": "active",
5 "createdAt": "2024-05-20T10:15:30Z",
6 "updatedAt": "2024-06-10T08:45:00Z",
7 "userId": "user_1234567890abcdef",
8 "organizationId": "org_abcdef1234567890",
9 "flowSteps": [
10 {
11 "id": "step_001",
12 "type": "prompt",
13 "name": "Welcome Message",
14 "order": 0,
15 "enabled": true,
16 "config": {}
17 }
18 ],
19 "lastRunAt": "2024-06-12T14:00:00Z",
20 "stepCount": 1,
21 "sampleMetadata": {},
22 "dashboardUrl": "https://dashboard.runtype.com/flows/flow_9f8b7c6d5e4a3b2c1d0e",
23 "draftVersionId": "draft_20240612_001"
24}

Update a flow and/or its step definitions.

Was this page helpful?
Previous

Delete flow

Next
Built with

Authentication

AuthorizationBearer
API key or Clerk session token

Path parameters

idstringRequired

Request

This endpoint expects an object.
namestringOptional>=1 character
flowStepslist of objectsOptional

Response

Updated flow
idstring
namestring
statusstring
createdAtstring
updatedAtstring
userIdstring
organizationIdstring or null
flowStepslist of objects
lastRunAtstring or null
stepCountinteger
sampleMetadatamap from strings to any
dashboardUrlstring
draftVersionIdstring or null

Errors

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