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
- application/json
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
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
uri Uri (string)required
{
"uri": "string"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...