PROMPT_EXPERIMENT_VARIANT_NOT_FOUND
400invalid_requestThe experiment arm is not a registered prompt version.
Cause
A variant_hash or control_hash named by the experiment does not resolve to a stored PromptVersion for that agent_type.
How to fix it
Create the prompt version first, then create the experiment.
Example response
400 PROMPT_EXPERIMENT_VARIANT_NOT_FOUND
JSON
{
"error_code": "PROMPT_EXPERIMENT_VARIANT_NOT_FOUND",
"error_type": "invalid_request",
"error_message": "The experiment arm is not a registered prompt version.",
"hint": "Create the prompt version first, then create the experiment.",
"docs_url": "https://docs.billerapi.com/errors/PROMPT_EXPERIMENT_VARIANT_NOT_FOUND",
"request_id": "d94f5e2a-8c3b-4f1e-9a7d-6b2c1e0f8a34"
}Related
- Error handling — the error envelope shape and how to parse it
- Error code reference — every stable error code
Canonical docs URL: https://docs.billerapi.com/errors/PROMPT_EXPERIMENT_VARIANT_NOT_FOUND
Was this page helpful?