Skip to content
OperadeDocs

Search documentation

Type to search documentation.

Documentation
Copy page
Open raw Markdown

Resubmit test runs

Create a new invocation from 1 to 5,000 selected run IDs, using the prior frozen snapshot by default or an explicitly selected current Main Draft or Live snapshot.

Endpoint

POST/api/v1/workspaces/{workspace_id}/test-invocations/{invocation_id}/resubmit

Authentication

Operation classAuthenticationMinimum roleAPI key
customer-apiBearer API key or dashboard session cookie; dashboard mutations also require X-CX-Request: 1.memberAllowed

Parameters

NameInTypeRequiredDescription
workspace_idpathstringYes—
invocation_idpathstringYes—

Request body

application/json request schema

Field pathTypeReferenceFormatNullableRequiredEnumDescription
$objectResubmitBody—NoYes——
agent_idstring——NoYes——
branch_idstring or null——YesNo——
confirm_google_sheets_appendboolean——NoNo——
override_configobject or null——YesNo——
targetstring or null——YesNo"draft", "live"—
test_run_idsarray<string>——NoYes——
test_run_ids[]string——NoYes——

Example

cURL
curl --request POST 'https://operade.ai/api/v1/workspaces/ws_demo/test-invocations/invo_demo/resubmit' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{"test_run_ids":["testrun_demo"],"agent_id":"agt_demo"}'
Request body JSON
{
  "test_run_ids": [
    "testrun_demo"
  ],
  "agent_id": "agt_demo"
}

Responses

StatusDescriptionContent
4XXHandled client errorapplication/json: ErrorResponse
201Successful Responseapplication/json: InvocationCreatedResponse

4XX application/json response schema

Field pathTypeReferenceFormatNullableRequiredEnumDescription
$objectErrorResponse—NoYes——
errorobjectErrorItem—NoYes——
error.codestring——NoYes——
error.detailsobject——NoNo——
error.messagestring——NoYes——

201 application/json response schema

Field pathTypeReferenceFormatNullableRequiredEnumDescription
$objectInvocationCreatedResponse—NoYes——
branch_idstring——NoYes——
bucketing_statusstring——NoYes"pending", "not_applicable"—
idstring——NoYes——
itemsarray<InvocationItem>——NoYes——
items[]objectInvocationItem—NoYes——
items[].display_snapshotobjectInvocationDisplaySnapshot—NoYes——
items[].display_snapshot.folder_patharray<string>——NoYes——
items[].display_snapshot.folder_path[]string——NoYes——
items[].display_snapshot.namestring——NoYes——
items[].display_snapshot.typestring——NoYes"simulation", "llm", "tool"—
items[].idstring——NoYes——
items[].ordinalinteger——NoYes——
items[].root_folder_idstring or null——YesYes——
items[].root_folder_namestring or null——YesYes——
items[].test_idstring——NoYes——
items[].test_revision_idstring——NoYes——
items[].workflow_node_idstring or null——YesYes——
repeat_countinteger——NoYes——
run_countinteger——NoYes——
statusstring——NoYes"pending"—
targetstring——NoYes"draft", "live"—

Response example

Response body JSON
{
  "id": "string",
  "target": "draft",
  "repeat_count": 0,
  "branch_id": "string",
  "status": "pending",
  "bucketing_status": "pending",
  "run_count": 0,
  "items": []
}

Errors

Reviewed common and route-declared errors are summarized here; the list is not exhaustive. Start with the distributed error index to find each code's canonical domain page.

StatusCodeDescription
401unauthenticatedAuthentication is missing, invalid, or revoked.
403forbiddenThe authenticated caller does not have access to this operation.
404not_foundThe requested workspace resource was not found.
422validation_failedThe request did not pass field or business validation.
403workspace_not_activatedAn Operade operator must activate the workspace and set a positive daily allowance before tests can run.
429quota_exceededThe workspace has reached its daily model-usage allowance before the invocation was created.
On this page
  1. Endpoint
  2. Authentication
  3. Parameters
  4. Request body
  5. application/json request schema
  6. Example
  7. Responses
  8. 4XX application/json response schema
  9. 201 application/json response schema
  10. Response example
  11. Errors
  12. Related operations