> ## Documentation Index > Fetch the complete documentation index at: https://helpcenter.autify.com/llms.txt > Use this file to discover all available pages before exploring further. # /api/workspaces/{workspaceId}/testPlans/{testPlanId}/run ## OpenAPI ````json POST /api/workspaces/{workspaceId}/testPlans/{testPlanId}/run { "openapi": "3.0.0", "info": { "title": "next-server", "contact": {} }, "servers": [ { "url": "{url}/nexus", "description": "Server URL", "variables": { "url": { "default": "https://nexus-server" } } } ], "security": [ { "bearerAuth": [] } ], "paths": { "/api/workspaces/{workspaceId}/testPlans/{testPlanId}/run": { "post": { "operationId": "RunTestPlan", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TestPlanEnqueued" } } } } }, "tags": [ "Workspaces" ], "security": [], "parameters": [ { "in": "path", "name": "workspaceId", "required": true, "schema": { "type": "string" } }, { "in": "path", "name": "testPlanId", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": false, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TestPlanRunRequest" } } } } } } }, "components": { "schemas": { "TestPlanEnqueued": { "properties": { "resultId": { "type": "string" } }, "required": [ "resultId" ], "type": "object", "additionalProperties": false }, "TestPlanRunRequest": { "properties": { "urlReplacements": { "items": { "properties": { "to": { "type": "string" }, "from": { "type": "string" } }, "required": [ "to", "from" ], "type": "object" }, "type": "array" }, "variableOverrides": { "items": { "$ref": "#/components/schemas/TestPlanVariableOverrideInput" }, "type": "array", "description": "Values to use for this run only. They layer over the test plan's saved\noverrides per variable and never change the plan itself. An override for\na variable that none of the plan's scenarios use is accepted but has no\neffect on the run.", "maxItems": 100 } }, "type": "object", "additionalProperties": false }, "TestPlanVariableOverrideInput": { "properties": { "variableId": { "type": "string", "description": "ID of the workspace variable to override, as returned by `GET workspaceVariables`." }, "value": { "anyOf": [ { "$ref": "#/components/schemas/RawVariableOverrideValue" }, { "$ref": "#/components/schemas/WorkspaceVariableOverrideValue" } ] } }, "required": [ "variableId", "value" ], "type": "object", "additionalProperties": false }, "RawVariableOverrideValue": { "description": "A literal value to give the variable for this run.", "properties": { "type": { "type": "string", "enum": [ "RAW" ], "nullable": false }, "text": { "type": "string", "maxLength": 1024 } }, "required": [ "type", "text" ], "type": "object", "additionalProperties": false }, "WorkspaceVariableOverrideValue": { "description": "Take the value from another workspace variable, resolved at run time within\nthe same workspace.", "properties": { "type": { "type": "string", "enum": [ "WORKSPACE_VARIABLE" ], "nullable": false }, "workspaceVariableId": { "type": "string" } }, "required": [ "type", "workspaceVariableId" ], "type": "object", "additionalProperties": false } } } } ````