Skip to main content

Project Lifecycle

Use these API calls before you create workloads, scenarios, benchmark runs, or reports. This page also covers the project editor RPCs: read a saved project, save every workload in one transaction, check a run before it starts, and copy a project.

Set these environment variables for the examples:

export METRUM_API_URL="https://<control-plane-host>/api/postgrest"
export METRUM_JWT_TOKEN="<personal-access-token>"
export METRUM_ACCOUNT_ID="<account-uuid>"
export METRUM_ORG_ID="<org-uuid>"

METRUM_ACCOUNT_ID is the account_id claim in your token. METRUM_ORG_ID is a workspace that get_current_user_context lists for you. For a self-hosted stack that exposes PostgREST directly, set METRUM_API_URL to the PostgREST URL instead.

Rules That Apply To Every Project RPC​

A project that has run cannot be changed​

A project counts as run once it starts any execution: a run, a job, a queued distributed KV workload, a cloud benchmark execution, or a cloud provisioning request. The platform records the first execution once and keeps the record after you delete the runs. A start that the server refuses and rolls back does not count.

Every RPC that changes a project's configuration refuses a project that has run. To change such a project, copy it with copy_project and change the copy.

RPCHow it refuses
update_project, update_workload, delete_workload, update_scenario_by_code, delete_scenario_by_codeRaises project_executed
create_workload, create_workload_v2, attach_workload_to_project, create_scenario, update_scenarioRaises project_executed
create_kyai_workload, create_kyai_scenarioRaises project_executed
update_project_configRaises project_executed
save_project_config with p_save_as_new falseRaises project_executed

The refusal is an HTTP 400 response with this body:

{
"code": "P0001",
"details": null,
"hint": "This project has run, so it cannot be changed. Copy it with \"benchctl project copy\" or Save as New in the project editor, then change the copy.",
"message": "project_executed"
}

save_project_config uses the same message and code with a shorter hint: This project has run, so it cannot be changed. Save your changes as a new project.

The MCP tools create_workload, create_scenario, create_kyai_workload, and create_kyai_scenario call these RPCs, so they fail in the same way. Use the MCP tool copy_project to make a copy you can change.

Execution RPCs, such as execute_project_run and execute_scenario, do not change the configuration and still run a project that has run before.

Project names resolve to the exact name first​

Project names are unique per owner exactly as stored, but name lookups ignore leading and trailing spaces. When two of your projects differ only by those spaces, a name lookup picks the exact name first, then the oldest project. A lookup across every project you can access picks the exact name, then a project you own, then the newest project.

To avoid any name match, pass the project UUID (p_project_uuid) to the RPCs that accept it: execute_project_run, create_kyai_generation_run, create_agentic_bench_multinode_run, and every project editor RPC on this page. list_projects and get_project_by_name return project_uuid.

Errors​

Most project RPCs report errors in one of two ways:

FormWhat you receive
Raised errorA non-2xx response with a PostgREST error body: code (SQLSTATE), message, details, hint.
Error objectA JSON object with an error key. Older RPCs such as create_project, get_project_by_name, and execute_project_run use this form for most validation failures.

The status of an error object depends on the base URL:

Base URLResponse
Hosted /api/postgrestHTTP 400 with {"message": "<the error text>", "code": "RPC_ERROR"}. The proxy keeps only the error text.
Self-hosted PostgRESTHTTP 200 with the whole object.

PostgREST maps the SQLSTATE of a raised error to the HTTP status:

codeMeaningHTTP status
P0001Raised with no specific code, such as project_executed400
22023Invalid parameter value400
42501Insufficient privilege, including a Casbin denial403
23505Unique violation, such as project_name_taken409
PT404Not found, such as Project not found from the project editor RPCs404
P0002No data found, raised by older RPCs500
PGRST202PostgREST found no function with this name and these parameter names404

The project editor RPCs answer a missing project with PT404 and HTTP 404. PostgREST returns HTTP 500 for P0002, which some older RPCs still raise, so read the code field, not only the status.

Current User Context​

Returns the account and organization context used by later runbook calls.

curl -fsS -X POST "$METRUM_API_URL/rpc/get_current_user_context" \
-H "Authorization: Bearer $METRUM_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d "{\"p_account_id\":\"$METRUM_ACCOUNT_ID\"}" | jq

Parameters:

NameTypeRequiredDescription
p_account_iduuidYesAccount UUID for the caller.

List Projects​

Lists projects visible to the caller.

curl -fsS -X POST "$METRUM_API_URL/rpc/list_projects" \
-H "Authorization: Bearer $METRUM_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d "{\"p_account_id\":\"$METRUM_ACCOUNT_ID\",\"p_include_shared\":true}" | jq

Parameters:

NameTypeRequiredDescription
p_account_iduuidYesAccount UUID for the caller.
p_include_sharedbooleanNoInclude projects shared with the caller. Default true.

Returns a JSON array, newest first. Each element has project_id, project_uuid, owner_account_id, project_name, visibility_code, visibility_name, created_at, is_owner, and is_shared.

Permission: project:read. The owner, admin, member, and viewer roles hold it.

Get Project By Name​

Returns one project by owner and exact name, including the UUID that copy_project and the other project-by-id RPCs take.

curl -fsS -X POST "$METRUM_API_URL/rpc/get_project_by_name" \
-H "Authorization: Bearer $METRUM_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d "{
\"p_account_id\":\"$METRUM_ACCOUNT_ID\",
\"p_owner_account_id\":\"$METRUM_ACCOUNT_ID\",
\"p_project_name\":\"deepseek-qwen15b-rtxpro6000-smoke\"
}" | jq

Parameters:

NameTypeRequiredDescription
p_account_iduuidYesThe caller. The caller must be able to access the project.
p_owner_account_iduuidYesThe project owner.
p_project_nametextYesThe project name, matched exactly.

Returns a JSON object:

FieldTypeDescription
project_idintegerInternal project id.
project_uuiduuidProject UUID. Pass it to copy_project and the project editor RPCs.
owner_account_iduuidProject owner.
created_by_account_iduuidAccount that created the project.
project_nametextProject name.
visibility_codetextprivate or org.
visibility_nametextDisplay name of the visibility.
created_attimestamptzCreation time.

Errors, as an error object:

errorCause
Project not foundThe owner has no project with this exact name.
ForbiddenThe caller cannot access the project.

Permission: project:read.

Create Project​

Creates a benchmark project.

curl -fsS -X POST "$METRUM_API_URL/rpc/create_project" \
-H "Authorization: Bearer $METRUM_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d "{
\"p_owner_account_id\":\"$METRUM_ACCOUNT_ID\",
\"p_project_name\":\"deepseek-qwen15b-rtxpro6000-smoke\",
\"p_visibility_code\":\"private\",
\"p_created_by_account_id\":\"$METRUM_ACCOUNT_ID\",
\"p_org_id\":\"$METRUM_ORG_ID\"
}" | jq

Parameters:

NameTypeRequiredDescription
p_owner_account_iduuidYesAccount UUID that owns the project.
p_project_nametextYesHuman-readable project name. Use a stable, unique name for the benchmark campaign.
p_visibility_codetextYesprivate or org. A Team project uses org.
p_created_by_account_iduuidNoAccount UUID creating the project. Defaults to the owner.
p_org_iduuidNoWorkspace that holds the project. A run checks the plan of this workspace, so set it.

Permission: project:write. The owner, admin, and member roles hold it.

Query Project Runs​

Lists run status for a project from the run status view.

curl -fsS "$METRUM_API_URL/v_project_runs_with_status?project_name=eq.deepseek-qwen15b-rtxpro6000-smoke&limit=50" \
-H "Authorization: Bearer $METRUM_JWT_TOKEN" | jq

Query parameters:

NameRequiredDescription
project_nameNoUse eq.<name> to filter by project name.
current_statusNoUse eq.<status> to filter by current run status.
limitNoMaximum rows to return.

Read A Saved Project​

The project editor reads a saved project with three RPCs. Each one takes the same three parameters.

NameTypeRequiredDescription
p_account_iduuidYesThe caller. It must match the account in your token.
p_org_iduuidNoWorkspace of the project. When you pass it, the project must belong to it.
p_project_uuiduuidYesThe project.

All three raise the same errors:

SQLSTATEmessageCause
22023p_account_id and p_project_uuid are requiredA required parameter is missing.
42501Caller ... is not authorized to act on behalf of account ...p_account_id is not the account in your token.
PT404Project not foundNo such project in p_org_id, or you cannot access it. HTTP 404.

Permission: project:read.

get_project_edit_state​

Returns whether a project has run, its configuration revision, whether you can update it in place, and the project it was copied from.

curl -fsS -X POST "$METRUM_API_URL/rpc/get_project_edit_state" \
-H "Authorization: Bearer $METRUM_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d "{
\"p_account_id\":\"$METRUM_ACCOUNT_ID\",
\"p_org_id\":\"$METRUM_ORG_ID\",
\"p_project_uuid\":\"<project-uuid>\"
}" | jq

Returns one row:

ColumnTypeDescription
project_uuiduuidThe project.
project_namevarcharName as stored.
visibility_codevarcharprivate or org.
owner_account_iduuidProject owner.
has_executedbooleantrue once the project has started any execution. It stays true after the runs are deleted.
first_executed_attimestamptzWhen the first execution committed. null for a project that never ran.
config_revisionintegerCount of in-place saves. Send it back as p_expected_revision to save_project_config.
can_writebooleanWhether you can update the project in place.
copied_from_project_uuiduuidThe project this one was saved from. null when there is none, or when you cannot open the source.
copied_from_project_namevarcharName of that source, under the same condition.

list_project_edit_workloads​

Returns one row per workload, with the saved values that the generic workload views do not carry.

curl -fsS -X POST "$METRUM_API_URL/rpc/list_project_edit_workloads" \
-H "Authorization: Bearer $METRUM_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d "{
\"p_account_id\":\"$METRUM_ACCOUNT_ID\",
\"p_org_id\":\"$METRUM_ORG_ID\",
\"p_project_uuid\":\"<project-uuid>\"
}" | jq
ColumnTypeDescription
workload_idintegerInternal workload id.
workload_codevarcharWorkload code.
tool_codevarcharBenchmark tool, for example metrumbench-llm or multiroundqa.
tool_args_set_codevarcharTool settings preset.
lmcache_framework_versionvarcharCache server version of the KV cache settings set.
deployment_mode_codevarcharDeployment mode, for example k8s_multinode_llm_d.
node_group_cluster_group_idsinteger[]Cluster groups of an llm-d workload.
node_group_selection_namesvarchar[]Names of those selections, in the same order.
target_server_idsinteger[]Saved machines.
target_gpu_countsinteger[]GPU count per saved machine, in the same order.
byoe_endpoint_codevarcharEndpoint code of a BYOE (your own endpoint) workload.
byoe_endpoint_namevarcharEndpoint name.
byoe_endpoint_owner_account_iduuidEndpoint owner.
byoe_api_base_urlvarcharEndpoint base URL.
byoe_model_identifiervarcharModel name the endpoint serves.
byoe_provider_codevarcharEndpoint provider.
byoe_transport_codevarcharEndpoint transport.
byoe_healthcheck_pathvarcharHealth check path.
byoe_max_concurrent_requestsintegerRequest limit of the endpoint.
byoe_has_api_keybooleanWhether an API key is stored. The key itself is never returned.

list_project_edit_scenarios​

Returns every saved scenario of the project exactly as stored, with every tool setting.

curl -fsS -X POST "$METRUM_API_URL/rpc/list_project_edit_scenarios" \
-H "Authorization: Bearer $METRUM_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d "{
\"p_account_id\":\"$METRUM_ACCOUNT_ID\",
\"p_org_id\":\"$METRUM_ORG_ID\",
\"p_project_uuid\":\"<project-uuid>\"
}" | jq
ColumnTypeDescription
workload_idintegerWorkload the scenario belongs to.
scenario_codevarcharScenario code.
scenario_namevarcharScenario name.
concurrencyintegerConcurrent requests.
input_sequence_lengthintegerInput tokens.
output_sequence_lengthintegerOutput tokens.
max_tokensintegerMaximum tokens per response.
num_images_batchintegerImages per request.
image_detailvarcharImage detail level.
num_requestsintegerRequests to send.
num_promptsintegerPrompts to use.
dataset_namevarcharDataset name.
streamingbooleanWhether responses stream.
snapshot_codevarcharKYAI dataset.
kyai_builtin_set_codevarcharKYAI built-in question set.
generation_system_prompt_codevarcharKYAI generation prompt saved with this workload.
judge_system_prompt_codevarcharKYAI judge prompt saved with this workload.
param_keysvarchar[]Names of every saved tool setting.
param_valuestext[]Values of those settings, in the same order.

save_project_config​

Saves a whole project in one transaction. The call creates a project, updates a project that never ran in place, or saves a new project from an existing one. Any failure rolls back the whole save.

curl -fsS -X POST "$METRUM_API_URL/rpc/save_project_config" \
-H "Authorization: Bearer $METRUM_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d "{
\"p_account_id\":\"$METRUM_ACCOUNT_ID\",
\"p_org_id\":\"$METRUM_ORG_ID\",
\"p_project_uuid\":null,
\"p_save_as_new\":false,
\"p_expected_revision\":null,
\"p_payload\":{
\"project_name\":\"qwen3-8b-l40s-sweep\",
\"visibility_code\":\"org\",
\"workloads\":[{
\"type\":\"benchmark\",
\"workload_code\":\"qwen3-8b-vllm\",
\"workload_name\":\"Qwen3 8B on vLLM\",
\"tool_code\":\"metrumbench-llm\",
\"model_codes\":[\"<model-code>\"],
\"framework_code\":\"vllm\",
\"version\":\"<framework-version>\",
\"target_selections\":[{\"server_id\":<server-id>,\"gpu_count\":1}],
\"scenarios\":[{
\"scenario_code\":\"c8-isl512-osl256\",
\"concurrency\":8,
\"input_sequence_length\":512,
\"output_sequence_length\":256,
\"num_requests\":100
}]
}]
}
}" | jq

Parameters:

NameTypeRequiredDescription
p_account_iduuidYesThe caller. It must match the account in your token.
p_org_iduuidNoWorkspace. A created project goes into it. A copy goes into the source project's workspace. For an existing project, the project must belong to it.
p_project_uuiduuidNonull creates a project. A UUID names the project to update or to copy from.
p_save_as_newbooleanNoWith a p_project_uuid: false updates that project in place, true saves a new project.
p_expected_revisionintegerFor an in-place updateThe config_revision from get_project_edit_state. A different value raises project_changed.
p_payloadjsonYesThe project and its workloads. See the payload reference below.

What each combination does:

p_project_uuidp_save_as_newResultsaved_as
nullanyCreates a project owned by you.created
A project that never ranfalseUpdates the project in place and adds 1 to config_revision.updated
Any project you can opentrueSaves a new project owned by you, linked to the source. An unchanged name becomes <name> (copy), then <name> (copy 2), and so on.copied

Returns one row:

ColumnTypeDescription
project_idintegerInternal project id.
project_uuiduuidThe saved project.
project_namevarcharIts name.
saved_asvarcharcreated, updated, or copied.
config_revisionintegerRevision after the save.
requested_workload_codesvarchar[]Workload codes you sent, in order.
saved_workload_codesvarchar[]Codes the workloads were saved under, in the same order. A code differs only when you already use it for a different workload definition in another project.

Errors:

SQLSTATEmessageCause
22023p_account_id is required, project_name is required, workload_code is requiredA required value is missing.
22023Visibility not found: ..., Unknown workload type: ...An unknown code.
22023Machine ... is not in this organizationA target machine belongs to another workspace.
22023The build profile "..." is no longer offered. ...The workload names a retired build profile.
42501Caller ... is not authorized ...p_account_id is not the account in your token.
42501Access deniedYou cannot write the project in place.
PT404Project not foundNo such project, or you cannot open it. HTTP 404.
P0001project_executedThe in-place update targets a project that has run. Set p_save_as_new to true.
P0001project_changedSomeone saved the project after you read it. The hint says to reload.
23505project_name_takenThe owner already has a project with this name.
P0001Workload "...": ...A workload failed to build. The message names the workload and the reason.

Permission: project:write. The owner, admin, and member roles hold it.

Payload reference​

p_payload is a JSON object:

FieldTypeRequiredDescription
project_nametextYesProject name. Leading and trailing spaces are removed.
visibility_codetextNoprivate (default) or org.
workloadsarrayYesOne object per workload. type selects the shape.

Every workload has type, workload_code (required), workload_name, and target_selections. target_selections is an array of {"server_id": <integer>, "gpu_count": <integer or null>}. Each machine must belong to the project's workspace.

type: "benchmark" covers every managed benchmark tool: MetrumBench LLM, VLM, ASR and ImageGen, GenAI-Perf, InferenceX, KV Cache Offload (multiroundqa), distributed KV cache, and llm-d.

FieldTypeDescription
tool_codetextBenchmark tool. Default metrumbench-llm.
model_codestext[]One or more models. Required.
framework_code, versiontextEngine and engine version.
engine_args_set_codetextEngine arguments set.
tool_args_set_codetextTool settings preset.
framework_profile_codetextBuild profile.
prompt_source_idintegerPrompt source.
imagegen_snapshot_codetextImageGen prompt set. Defaults to metrumbench-imagegen-smoke-prompts-v1 for metrumbench-imagegen.
asr_snapshot_codetextASR audio set.
kv_cache_tier_codetextKV Cache Offload tier, for example gpu, cpu, or nvme. list_kv_cache_tiers_for_recipe lists the tiers for a tool and engine.
lmcache_engine_args_set_code, lmcache_framework_versiontextCache server settings for the cpu and nvme tiers.
node_group_selectionsarrayllm-d cluster groups: {"cluster_group_id": <integer>, "selection_name": "<name>"}. Setting any makes the workload an llm-d workload.
distributed_kvobjectDistributed KV cache settings. See Distributed KV Cache.
scenariosarrayScenarios, saved exactly as sent.

Each scenario object takes scenario_code (required), scenario_name, concurrency, input_sequence_length, output_sequence_length, max_tokens, num_images_batch, image_detail, num_requests, num_prompts, dataset_name, streaming, and job_params. job_params is an object of tool setting names to values, for example {"num_rounds": "3"} for KV Cache Offload or {"size": "1024x1024"} for ImageGen.

type: "byoe" runs MetrumBench LLM against your own endpoint:

FieldTypeDescription
endpoint_codetextAn active endpoint that the project owner owns. The web app creates endpoints, because it encrypts the API key outside the database.
target_selectionsarrayThe machine that sends the load.
scenariosarraySame shape as a benchmark scenario.

type: "kyai" builds one KYAI workload for one candidate endpoint:

FieldTypeDescription
candidate_endpoint_codetextCandidate endpoint.
judge_config_codetextJudge configuration.
judge_max_concurrent_requests_overrideintegerJudge concurrency for this workload.
scenariosarrayOne per dataset: scenario_code, scenario_name, snapshot_code or kyai_builtin_set_code, generation_system_prompt_code, judge_system_prompt_code, and job_params (num_samples, batch_size, max_concurrent_requests, max_tokens, candidate_system_prompt).

A KYAI run reads the generation and judge prompts saved here before the prompts on the shared dataset template.

type: "agentic_bench" builds one Agentic Bench workload. p_org_id or the source project must name a workspace.

FieldTypeDescription
model_code, versiontextModel and engine version. Required.
framework_codetextEngine. Default vllm.
framework_profile_codetextBuild profile.
tensor_parallel_size, pipeline_parallel_sizeintegerParallelism. Pipeline parallel size defaults to 1.
extra_arg_keys, extra_arg_valuestext[]Extra engine arguments, in matching order.
settingsobjectSaved run settings: dataset_ref, task_codes, cluster_group_code, concurrency_levels, trials_per_task, agent_timeout_multiplier, min_pass_rate_threshold, min_gpu_busy_ratio_threshold, agent_deadline_seconds, sandbox_cpu_mode (default unpinned), and cpu_lists ({"server_id": <integer>, "cpu_list": "<list>"}).

preflight_project_run​

Checks a project payload before a run, without writing anything. It takes the same payload as save_project_config. Call it before you save and run, so a run that cannot start saves nothing.

curl -fsS -X POST "$METRUM_API_URL/rpc/preflight_project_run" \
-H "Authorization: Bearer $METRUM_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d "{
\"p_account_id\":\"$METRUM_ACCOUNT_ID\",
\"p_org_id\":\"$METRUM_ORG_ID\",
\"p_payload\":{\"project_name\":\"qwen3-8b-l40s-sweep\",\"workloads\":[]}
}" | jq

Parameters:

NameTypeRequiredDescription
p_account_iduuidYesThe caller. It must match the account in your token.
p_org_iduuidYesWorkspace whose plan, machines, and endpoints the checks read. You must belong to it.
p_payloadjsonYesThe save_project_config payload. Only workloads is read.

Returns one row per problem. No rows means every check passed.

ColumnTypeDescription
workload_codevarcharWorkload with the problem.
check_codevarcharWhich check failed. See the next table.
severityvarcharblock stops the run. note informs only.
step_codevarcharEditor step to fix: model, engine, hardware, or judge.
messagetextA sentence to show a person.
check_codeSeverityMeaning
not_in_planblockThe workspace plan does not include the tool or distributed KV cache. Skipped in dev mode.
retired_optionblockThe workload names a retired build profile.
no_hardwareblockNo machine, or no cluster group in this workspace, for a workload that needs one.
endpoint_unavailableblockThe KYAI candidate endpoint is inactive or not available to you.
judge_unavailableblockThe KYAI judge is inactive or not available to you.
machine_not_in_orgblockA machine is not in the workspace.
machine_not_readyblockA machine fails a readiness check.
gpu_count_too_highblockThe GPU count is larger than the machine has.
gpu_vendor_unsupportedblockThe engine version does not run on the machine's GPU vendor.
cluster_busynoteAnother run uses the distributed KV cluster group. This run waits in its queue.

Errors:

SQLSTATEmessageCause
22023p_account_id and p_org_id are requiredA required parameter is missing.
42501Access deniedYou do not belong to the workspace.
42501Caller ... is not authorized ...p_account_id is not the account in your token.

Permission: project:read.

copy_project​

Saves a new project from an existing one with every workload, scenario, and saved setting. The copy is the same as Save as New in the editor with no edits. Use it to change a project that has run.

curl -fsS -X POST "$METRUM_API_URL/rpc/copy_project" \
-H "Authorization: Bearer $METRUM_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d "{
\"p_account_id\":\"$METRUM_ACCOUNT_ID\",
\"p_org_id\":\"$METRUM_ORG_ID\",
\"p_project_uuid\":\"<project-uuid>\",
\"p_project_name\":\"qwen3-8b-l40s-sweep v2\"
}" | jq

Parameters:

NameTypeRequiredDescription
p_account_iduuidYesThe caller. You own the copy.
p_org_iduuidNoWorkspace of the source project. When you pass it, the source must belong to it.
p_project_uuiduuidYesThe project to copy. You must be able to open it.
p_project_namevarcharNoName of the copy. Without it, the copy is named <name> (copy), then <name> (copy 2), and so on.

Returns the same row as save_project_config, with saved_as set to copied. The copy records its source, which get_project_edit_state returns as copied_from_project_uuid.

Errors: the errors of the read RPCs above, plus the save_project_config errors for building workloads. A BYOE workload fails with Endpoint "..." was not found for the project owner when you do not own the source endpoint. The hint asks you to enter the endpoint details again.

Permission: project:write.

The MCP tool copy_project calls this RPC. Its arguments are project_uuid (required), new_name, account_id, and org_id. Without org_id, the tool sends your default workspace, so pass org_id to copy a project from another workspace. The CLI command is benchctl project copy.

execute_project_run​

Starts a run of a whole project, or of one workload. Pass p_project_uuid, so the run goes to the project you named and never to a project of the same name.

curl -fsS -X POST "$METRUM_API_URL/rpc/execute_project_run" \
-H "Authorization: Bearer $METRUM_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d "{
\"p_owner_account_id\":\"$METRUM_ACCOUNT_ID\",
\"p_project_name\":\"qwen3-8b-l40s-sweep\",
\"p_project_uuid\":\"<project-uuid>\",
\"p_run_name\":\"qwen3-8b-l40s-sweep-run-1\",
\"p_server_config_instance_id\":<server-id>
}" | jq

Parameters:

NameTypeRequiredDescription
p_owner_account_iduuidYesThe caller. It must match the account in your token.
p_project_namevarcharYesProject name. Used only when p_project_uuid is absent.
p_run_namevarcharYesRun name.
p_project_uuiduuidNoThe project. A UUID that does not resolve returns Project not found; the call never falls back to the name.
p_server_config_instance_idintegerNoTarget machine. Omit it for an llm-d or distributed KV workload, which runs on its cluster group.
p_server_idintegerNoOlder alias of p_server_config_instance_id.
p_workload_codevarcharNoRun one workload only.
p_run_descriptiontextNoRun description.
p_manage_model_serverbooleanNoWhether the agent starts and stops the model server. Default true.
p_hf_token_idintegerNoHugging Face token to use. Defaults to your default active token.
p_execution_group_iduuidNoGroups several runs under one monitoring row.
p_gpu_countintegerNoGPU limit for the run.

Returns a JSON object with run_id, project_id, project_name, run_name, server_config_instance_id, status, jobs_created, job_ids, scenarios_found, execution_group_id, and execution_label. A project with a distributed KV workload returns more fields. See Distributed KV Cache.

Errors, as an error object: Project not found, Server does not belong to this organization, Server config instance not found, No runnable scenarios found for project, Mixed-workload run setting conflict, Failed to prepare model server contract, No jobs were created for project run, and Failed to execute scenario for project run. When the workspace plan does not include a tool, the job insert raises P0002 (HTTP 500) with ... is not included in your current plan, so this run was not started.

Permission: project:execute. The owner, admin, and member roles hold it.