Update an A/B variant
Update an A/B variant
Authentication
Path parameters
UUID of the agent that owns the variant. A value that is not a UUID answers 400 Invalid params.
UUID of the variant (id from GET /api/agents/{agentId}/ab-tests). A variant of another agent, another workspace or already deleted answers 404; a value that is not a UUID answers 400 Invalid params.
Request
New relative traffic weight, 0-100. Stored as an integer — send whole numbers; a fractional value fails the request.
false stops the variant from being picked for new calls; counters are kept.
New prompt, 10-8000 characters. Blank is treated as absent. Screened for fraud.
New opening line. Trimmed; blank is treated as absent (it cannot be cleared to null here).
Response
A prompt variant row (snake_case), with its raw performance counters.

