Update Variant Parameters
PUThttps://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
- application/json
Body
required
parameters objectrequired
Responses
- 200
- 422
Successful Response
- application/json
- Schema
Schema
any
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
detail
object[]
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
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": {}
}'
ResponseClear