POST
/v1/operations/{operationId}/runsbetaapiKeyworkspace
When to use
Test saved draft code or execute published code.
For agents
Data Flows execute their dependency graph. Individual operations use existing prerequisite outputs. Poll listRuns with the returned workflowId and inspect node failures before publishing.
Example
import { PermuteClient } from '@permute/sdk';
const orgClient = new PermuteClient({
apiKey: process.env.PERMUTE_API_KEY!,
});
const client = orgClient.withWorkspace(process.env.PERMUTE_WORKSPACE_ID!);
const result = await client.operations.run('oper_revenue123', {
"version": "draft"
});Request body
{
"version": "draft"
}Response
{
"data": {
"workflowId": "wkfl_run123",
"runId": "oprn_run123"
}
}