Add Variant From Base And Config
POST/variants/from-base
Add a new variant based on an existing one. Same as POST /config
Args: payload (AddVariantFromBasePayload): Payload containing base variant ID, new variant name, and parameters. stoken_session (SessionContainer, optional): Session container. Defaults to result of verify_session().
Raises: HTTPException: Raised if the variant could not be added or accessed.
Returns: Union[AppVariantResponse, Any]: New variant details or exception.
Request
- application/json
Body
required
base_id Base Id (string)required
new_variant_name New Variant Name (string)required
new_config_name New Config Name (string)required
parameters objectrequired
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
- AppVariantResponse_
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
anyOfparametersobject
uriobject
app_id App Id (string)required
app_name App Name (string)required
variant_id Variant Id (string)required
variant_name Variant Name (string)required
project_id Project Id (string)required
parametersobjectrequired
anyOf
base_name Base Name (string)required
base_id Base Id (string)required
config_name Config Name (string)required
uriobjectrequired
anyOf
string
revision Revision (integer)required
created_atobject
anyOf
string
updated_atobject
anyOf
string
modified_by_idobject
anyOf
string
organization_idobject
anyOf
string
workspace_idobject
anyOf
string
{}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detailobject[]
locobject[]required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...