Apps
Add Variant From Image
Add a new variant to an app based on a Docker image.
Args: app_id (str): The ID of the app to add the variant to. payload (AddVariantFromImagePayload): The payload containing information about the variant to add. stoken_session (SessionContainer, optional): The session container. Defaults to Depends(verify_session()).
Raises: HTTPException: If the feature flag is set to “demo” or if the image does not have a tag starting with the registry name (agenta-server) or if the image is not found or if the user does not have access to the app.
Returns: dict: The newly added variant.
POST
/
apps
/
{app_id}
/
variant
/
from-image
Authorizations
Authorization
string
headerrequiredPath Parameters
app_id
string
requiredBody
application/json
variant_name
string
requireddocker_id
string
requiredtags
string
requiredbase_name
string
config_name
string
Response
200 - application/json
The response is of type any
.
Was this page helpful?