Skip to main content

Start Variant

PUT 

/variants/:variant_id

Start a variant of an app.

Args: variant_id (str): The ID of the variant to start. action (VariantAction): The action to perform on the variant (start). env_vars (Optional[DockerEnvVars], optional): The environment variables to inject to the Docker container. Defaults to None. stoken_session (SessionContainer, optional): The session container. Defaults to Depends(verify_session()).

Returns: URI: The URL of the started variant.

Raises: HTTPException: If the app container cannot be started.

Request

Path Parameters

    variant_id Variant Idrequired

Body

required

    action

    object

    required

    action VariantActionEnum (string)required

    Possible values: [START, STOP]

    An enumeration.

    env_vars

    object

    env_vars

    object

    required

    property name* string

Responses

Successful Response

Schema

    uri Uri (string)required
Loading...