Update Variant Image
PUT/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
- MOD1
- MOD1
- MOD1
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
- 200
- 422
Successful Response
- application/json
- Schema
Schema
any
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...