Skip to main content

Get Variant By Env

GET 

/apps/get_variant_by_env

Retrieve the app variant based on the provided app_id and environment.

Args: app_id (str): The ID of the app to retrieve the variant for. environment (str): The environment of the app variant to retrieve. stoken_session (SessionContainer, optional): The session token container. Defaults to Depends(verify_session()).

Raises: HTTPException: If the app variant is not found (status_code=500), or if a ValueError is raised (status_code=400), or if any other exception is raised (status_code=500).

Returns: AppVariantResponse: The retrieved app variant.

Request

Query Parameters

    app_id App Idrequired
    environment Environmentrequired

Responses

Successful Response

Schema

    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...