Update a metric variant
Changed onRename a variant, change its configuration, or both. Every configuration change creates a new immutable version and advances versionId; the response carries the advanced value.
Editing one of Roark’s own variants forks it for your organization. The response carries the new variant’s id, which will differ from the one in the path, and isSystem becomes false. Roark’s variant is untouched and other organizations keep it. DELETE your fork to go back to it.
Which fields are editable depends on the metric: some Roark metrics lock their prompt or output configuration, and a locked field is rejected rather than ignored.
Request
- Base URLhttps://api.roark.ai
- URLhttps://api.roark.ai/v1/metric/definitions/{idOrSlug}/variants/{variantId}
- AuthHTTP bearer
Path parameters
Metric definition UUID or its stable slug.
Variant UUID.
Request body
Example request
{
"llmPrompt": "Did the agent verify identity before disclosing anything? {{transcript}}"
}Response
The updated variant, or your organization’s fork of it
Changes
- info
the
request property's maxLength was increased from3000to20000
- info
- info
the
request property's maxLength was increased from2000to3000
- info