Update Variant Image
PUThttps://cloud.agenta.ai/api/variants/:variant_id/image
Updates the image used in an app variant.
Args: variant_id (str): The ID of the app variant to update. image (Image): The image information to update.
Raises: HTTPException: If an error occurs while trying to update the app variant.
Returns: JSONResponse: A JSON response indicating whether the update was successful or not.
Request
Path Parameters
variant_id Variant Idrequired
- application/json
Body
required
type
object
required
docker_id Docker Id (string)required
tags Tags (string)required
organization_id
object
workspace_id
object
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/image' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
-d '{
"type": "string",
"docker_id": "string",
"tags": "string",
"organization_id": "string",
"workspace_id": "string"
}'
ResponseClear