Skip to main content

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

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

Successful Response

Schema

    anyOf

    app_id App Id (string)required
    app_name App Name (string)required
    variant_id Variant Id (string)required
    variant_name Variant Name (string)required
    parameters object
    previous_variant_name Previous Variant Name (string)
    user_id User Id (string)required
    base_name Base Name (string)required
    base_id Base Id (string)required
    config_name Config Name (string)required
    uri Uri (string)
    revision Revision (integer)required
    organization_id Organization Id (string)
    workspace_id Workspace Id (string)
Loading...