Skip to main content

Update Variant Image

PUT 

https://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

Body

required

    type

    object

    required

    anyOf

    string

    docker_id Docker Id (string)required
    tags Tags (string)required

    organization_id

    object

    anyOf

    string

    workspace_id

    object

    anyOf

    string

Responses

Successful Response

Schema

    any

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"
}'
Request Collapse all
Base URL
https://cloud.agenta.ai/api
Auth
Parameters
— pathrequired
Body required
{
  "type": "string",
  "docker_id": "string",
  "tags": "string",
  "organization_id": "string",
  "workspace_id": "string"
}
ResponseClear

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