Create a rerun request
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| runId | path | string | Yes | Not published in OpenAPI |
| Idempotency-Key | header | string | No | Optional idempotency key, at most 255 characters (UUIDv4 recommended). A repeated key returns the first response byte-for-byte, including a 5xx. The same key with a different body, or a second in-flight request, returns 409 IDEMPOTENCY_CONFLICT. Keys are unique per tenant and retained for 24 hours. |
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"failed",
"from_step",
"all"
]
},
"stepId": {
"type": "string"
},
"recordingIds": {
"type": "array",
"items": {
"type": "string",
"format": "uuid"
}
},
"revision": {
"type": "string",
"enum": [
"original",
"latest"
]
},
"dryRun": {
"type": "boolean"
}
},
"required": [
"mode",
"revision"
]
}| Status | Description | Content-Type | Schema |
|---|---|---|---|
| 200 | Success | application/json | union |
| 400 | Bad request. Enumerated catalog codes for this operation. | application/problem+json | union |
| 401 | Authentication failed. A specific TOKEN_* cause is returned only when the presented hash matched a stored row. | application/problem+json | union |
| 403 | Authorization failed. PERMISSION_DENIED on an any-of route lists the alternatives in message. | application/problem+json | union |
| 404 | Not found. Enumerated catalog codes for this operation. | application/problem+json | union |
| 409 | Conflict. Enumerated catalog codes for this operation. | application/problem+json | union |
| 429 | Authenticated per-principal or per-tenant request budget exceeded. Rate-limit headers appear only on 429. | application/problem+json | union |
{
"oneOf": [
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"steps": {
"type": "array",
"items": {
"type": "object",
"properties": {
"stepId": {
"type": "string"
},
"scopeKey": {
"type": "string"
},
"recordingId": {
"type": "string",
"nullable": true
},
"cached": {
"oneOf": [
{
"type": "boolean",
"enum": [
false
]
},
{
"type": "boolean",
"enum": [
true
]
}
]
}
},
"required": [
"stepId",
"scopeKey",
"recordingId",
"cached"
]
}
},
"recordings": {
"type": "array",
"items": {
"type": "string"
}
},
"estimate": {
"type": "object",
"properties": {
"cpuSeconds": {
"type": "number"
},
"gpuSeconds": {
"type": "number"
},
"storageBytes": {
"type": "number"
},
"durationSeconds": {
"type": "number"
},
"costMinor": {
"type": "number"
},
"currency": {
"type": "string",
"enum": [
"usd"
]
}
},
"required": [
"cpuSeconds",
"gpuSeconds",
"storageBytes",
"durationSeconds",
"costMinor",
"currency"
]
},
"workflowRunId": {
"type": "object",
"additionalProperties": true
},
"status": {
"type": "object",
"additionalProperties": true
}
},
"required": [
"steps",
"recordings",
"estimate"
]
}
},
"required": [
"data"
]
},
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"workflowRunId": {
"type": "string"
},
"status": {
"type": "string"
},
"steps": {
"type": "array",
"items": {
"type": "object",
"properties": {
"stepId": {
"type": "string"
},
"scopeKey": {
"type": "string"
},
"recordingId": {
"type": "string",
"nullable": true
},
"cached": {
"oneOf": [
{
"type": "boolean",
"enum": [
false
]
},
{
"type": "boolean",
"enum": [
true
]
}
]
}
},
"required": [
"stepId",
"scopeKey",
"recordingId",
"cached"
]
}
},
"recordings": {
"type": "array",
"items": {
"type": "string"
}
},
"estimate": {
"type": "object",
"properties": {
"cpuSeconds": {
"type": "number"
},
"gpuSeconds": {
"type": "number"
},
"storageBytes": {
"type": "number"
},
"durationSeconds": {
"type": "number"
},
"costMinor": {
"type": "number"
},
"currency": {
"type": "string",
"enum": [
"usd"
]
}
},
"required": [
"cpuSeconds",
"gpuSeconds",
"storageBytes",
"durationSeconds",
"costMinor",
"currency"
]
}
},
"required": [
"workflowRunId",
"status",
"steps",
"recordings",
"estimate"
]
}
},
"required": [
"data"
]
}
]
}{
"allOf": [
{
"$ref": "#/components/schemas/ProblemJson"
},
{
"type": "object",
"properties": {
"status": {
"type": "integer",
"enum": [
400
]
},
"code": {
"type": "string",
"enum": [
"BAD_REQUEST",
"IDEMPOTENCY_KEY_INVALID",
"IF_MATCH_INVALID",
"TENANT_CONTEXT_MISMATCH",
"TENANT_REQUIRED",
"VALIDATION_ERROR",
"WORKFLOW_DEFINITION_REVISION_NOT_PUBLISHED"
]
}
}
}
]
}{
"allOf": [
{
"$ref": "#/components/schemas/PublishedAuthProblem"
},
{
"type": "object",
"properties": {
"status": {
"type": "integer",
"enum": [
401
]
},
"code": {
"type": "string",
"enum": [
"TOKEN_MALFORMED",
"TOKEN_NOT_FOUND",
"TOKEN_EXPIRED",
"TOKEN_REVOKED",
"UNAUTHORIZED",
"SESSION_EXPIRED",
"ACTIVATION_REQUIRED",
"MFA_REQUIRED"
]
}
}
}
]
}{
"allOf": [
{
"$ref": "#/components/schemas/PublishedAuthProblem"
},
{
"type": "object",
"properties": {
"status": {
"type": "integer",
"enum": [
403
]
},
"code": {
"type": "string",
"enum": [
"PERMISSION_DENIED",
"PERMISSION_NOT_DECLARED",
"FORBIDDEN",
"MEMBERSHIP_NOT_FOUND",
"MEMBERSHIP_DISABLED",
"MEMBERSHIP_EXPIRED",
"PROJECT_MEMBERSHIP_EXPIRED"
]
}
}
}
]
}{
"allOf": [
{
"$ref": "#/components/schemas/ProblemJson"
},
{
"type": "object",
"properties": {
"status": {
"type": "integer",
"enum": [
404
]
},
"code": {
"type": "string",
"enum": [
"NOT_FOUND",
"USER_NOTIFICATION_NOT_FOUND",
"WORKFLOW_DEFINITION_NOT_FOUND",
"WORKFLOW_NOT_FOUND",
"WORKFLOW_NOT_VISIBLE",
"WORKFLOW_REVISION_NOT_FOUND",
"WORKFLOW_RUN_NOT_FOUND"
]
}
}
}
]
}{
"allOf": [
{
"$ref": "#/components/schemas/ProblemJson"
},
{
"type": "object",
"properties": {
"status": {
"type": "integer",
"enum": [
409
]
},
"code": {
"type": "string",
"enum": [
"IDEMPOTENCY_CONFLICT",
"WORKFLOW_DEFINITION_CODE_CONFLICT",
"WORKFLOW_RERUN_NOT_ALLOWED",
"WORKFLOW_RUN_STATE_CONFLICT"
]
}
}
}
]
}{
"allOf": [
{
"$ref": "#/components/schemas/PublishedAuthProblem"
},
{
"type": "object",
"properties": {
"status": {
"type": "integer",
"enum": [
429
]
},
"code": {
"type": "string",
"enum": [
"RATE_LIMITED"
]
}
}
}
]
}curl -X POST 'https://api.embodiflow.com/v1/workflow-runs/{runId}/rerun-requests' \
-H 'Authorization: Bearer $EMBODIFLOW_PAT' \
-H 'Content-Type: application/json' \
-d '{}'