Skip to main content

Update Variant Parameters

PUT 

https://cloud.agenta.ai/api/variants/:variant_id/parameters

Updates the parameters for an app variant.

Args: variant_id (str): The ID of the app variant to update. payload (UpdateVariantParameterPayload): The payload containing the updated parameters. stoken_session (SessionContainer, optional): The session container. Defaults to Depends(verify_session()).

Raises: HTTPException: If there is an error while trying to update the app variant.

Returns: JSONResponse: A JSON response containing the updated app variant parameters.

Request

Path Parameters

    variant_id Variant Idrequired

Body

required

    parameters objectrequired

Responses

Successful Response

Schema

    any

curl -L -X PUT 'https://cloud.agenta.ai/api/variants/:variant_id/parameters' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
-d '{
"parameters": {}
}'
Request Collapse all
Base URL
https://cloud.agenta.ai/api
Auth
Parameters
— pathrequired
Body required
{
  "parameters": {}
}
ResponseClear

Click the Send API Request button above and see the response here!