|
165 | 165 | "403": { |
166 | 166 | "$ref": "#/components/responses/Forbidden" |
167 | 167 | }, |
| 168 | + "404": { |
| 169 | + "$ref": "#/components/responses/NotFound" |
| 170 | + }, |
168 | 171 | "413": { |
169 | 172 | "$ref": "#/components/responses/PayloadTooLarge" |
170 | 173 | }, |
|
182 | 185 | "post": { |
183 | 186 | "operationId": "createWorkflowV2", |
184 | 187 | "summary": "Create Workflow", |
185 | | - "description": "Create a workflow in a workspace root or canonical workflow folder.", |
| 188 | + "description": "Create a workflow in a workspace root or canonical workflow folder. A workspace whose folder tree exceeds 10,000 folders is a 413, because the response needs the whole tree to render folder paths.", |
186 | 189 | "tags": ["Workflows"], |
187 | 190 | "requestBody": { |
188 | 191 | "required": true, |
|
226 | 229 | "403": { |
227 | 230 | "$ref": "#/components/responses/Forbidden" |
228 | 231 | }, |
| 232 | + "404": { |
| 233 | + "$ref": "#/components/responses/NotFound" |
| 234 | + }, |
229 | 235 | "409": { |
230 | 236 | "$ref": "#/components/responses/Conflict" |
231 | 237 | }, |
| 238 | + "413": { |
| 239 | + "$ref": "#/components/responses/PayloadTooLarge" |
| 240 | + }, |
232 | 241 | "423": { |
233 | 242 | "$ref": "#/components/responses/Locked" |
234 | 243 | }, |
|
1046 | 1055 | "pattern": "^[A-Za-z0-9._:-]+$", |
1047 | 1056 | "examples": ["run_8f14e45f-ceea-467f-a"] |
1048 | 1057 | } |
| 1058 | + }, |
| 1059 | + { |
| 1060 | + "name": "x-sim-via", |
| 1061 | + "in": "header", |
| 1062 | + "required": false, |
| 1063 | + "description": "Comma-separated workflow identifiers describing the workflow-to-workflow call chain that led to this request. Each hop appends its own workflow id, and Sim sets it automatically when one workflow calls another; supply it yourself only when relaying an existing chain. A chain already at the maximum depth is rejected with 409 and `error.details.code: \"CALL_CHAIN_DEPTH_EXCEEDED\"`, which is how runaway recursion between workflows is stopped.", |
| 1064 | + "schema": { |
| 1065 | + "description": "Comma-separated workflow identifiers describing the workflow-to-workflow call chain that led to this request. Each hop appends its own workflow id, and Sim sets it automatically when one workflow calls another; supply it yourself only when relaying an existing chain. A chain already at the maximum depth is rejected with 409 and `error.details.code: \"CALL_CHAIN_DEPTH_EXCEEDED\"`, which is how runaway recursion between workflows is stopped.", |
| 1066 | + "type": "string" |
| 1067 | + } |
1049 | 1068 | } |
1050 | 1069 | ], |
1051 | 1070 | "requestBody": { |
|
1385 | 1404 | "404": { |
1386 | 1405 | "$ref": "#/components/responses/NotFound" |
1387 | 1406 | }, |
| 1407 | + "409": { |
| 1408 | + "$ref": "#/components/responses/Conflict" |
| 1409 | + }, |
1388 | 1410 | "429": { |
1389 | 1411 | "$ref": "#/components/responses/RateLimited" |
1390 | 1412 | }, |
|
1511 | 1533 | "413": { |
1512 | 1534 | "$ref": "#/components/responses/PayloadTooLarge" |
1513 | 1535 | }, |
1514 | | - "423": { |
1515 | | - "$ref": "#/components/responses/Locked" |
1516 | | - }, |
1517 | 1536 | "429": { |
1518 | 1537 | "$ref": "#/components/responses/RateLimited" |
1519 | 1538 | }, |
|
1704 | 1723 | "403": { |
1705 | 1724 | "$ref": "#/components/responses/Forbidden" |
1706 | 1725 | }, |
| 1726 | + "404": { |
| 1727 | + "$ref": "#/components/responses/NotFound" |
| 1728 | + }, |
1707 | 1729 | "413": { |
1708 | 1730 | "$ref": "#/components/responses/PayloadTooLarge" |
1709 | 1731 | }, |
|
2075 | 2097 | } |
2076 | 2098 | }, |
2077 | 2099 | "RunIdConflict": { |
2078 | | - "description": "The run identifier is already associated with a different request.", |
| 2100 | + "description": "The run cannot be started. Two causes share this status, distinguished by `error.details.code`: `RUN_ID_CONFLICT` when the supplied `X-Run-Id` is already associated with a different request, and `CALL_CHAIN_DEPTH_EXCEEDED` when the incoming `X-Sim-Via` chain has already reached the maximum workflow-to-workflow call depth.", |
2079 | 2101 | "headers": { |
2080 | 2102 | "X-Run-Id": { |
2081 | 2103 | "$ref": "#/components/headers/X-Run-Id" |
|
3128 | 3150 | { |
3129 | 3151 | "data": { |
3130 | 3152 | "id": "3b1f7c92-8d4e-4a6b-9c0d-5e2f8a714b36", |
3131 | | - "isDeployed": true, |
3132 | | - "deployedAt": "2026-06-12T10:30:00.000Z", |
| 3153 | + "isDeployed": false, |
| 3154 | + "deployedAt": null, |
3133 | 3155 | "warnings": [], |
3134 | 3156 | "activeDeployment": null, |
3135 | | - "latestDeploymentAttempt": null, |
| 3157 | + "latestDeploymentAttempt": { |
| 3158 | + "id": "depop_01J8ZK3QW4M6X2R9T7B5C0V1", |
| 3159 | + "deploymentVersionId": "depver_01J8ZK3QW4M6X2R9T7B5C0V2", |
| 3160 | + "version": 3, |
| 3161 | + "action": "deploy", |
| 3162 | + "status": "preparing", |
| 3163 | + "isCurrent": true, |
| 3164 | + "readiness": { |
| 3165 | + "webhooks": "pending", |
| 3166 | + "schedules": "ready", |
| 3167 | + "mcp": "not_applicable" |
| 3168 | + }, |
| 3169 | + "requestedAt": "2026-06-12T10:30:00.000Z", |
| 3170 | + "activatedAt": null, |
| 3171 | + "error": null |
| 3172 | + }, |
3136 | 3173 | "version": 3 |
3137 | 3174 | } |
3138 | 3175 | } |
|
3352 | 3389 | { |
3353 | 3390 | "data": { |
3354 | 3391 | "id": "3b1f7c92-8d4e-4a6b-9c0d-5e2f8a714b36", |
3355 | | - "isDeployed": true, |
3356 | | - "deployedAt": "2026-06-12T10:30:00.000Z", |
| 3392 | + "isDeployed": false, |
| 3393 | + "deployedAt": null, |
3357 | 3394 | "warnings": [], |
3358 | 3395 | "activeDeployment": null, |
3359 | | - "latestDeploymentAttempt": null, |
| 3396 | + "latestDeploymentAttempt": { |
| 3397 | + "id": "depop_01J8ZK4RX5N7Y3S0U8D6E1W2", |
| 3398 | + "deploymentVersionId": "depver_01J8ZK4RX5N7Y3S0U8D6E1W3", |
| 3399 | + "version": 2, |
| 3400 | + "action": "activate", |
| 3401 | + "status": "activating", |
| 3402 | + "isCurrent": true, |
| 3403 | + "readiness": { |
| 3404 | + "webhooks": "ready", |
| 3405 | + "schedules": "ready", |
| 3406 | + "mcp": "not_applicable" |
| 3407 | + }, |
| 3408 | + "requestedAt": "2026-06-12T10:30:00.000Z", |
| 3409 | + "activatedAt": null, |
| 3410 | + "error": null |
| 3411 | + }, |
3360 | 3412 | "version": 2 |
3361 | 3413 | } |
3362 | 3414 | } |
|
0 commit comments