Skip to main content

Create App And Variant From Template

POST 

/apps/app_and_variant_from_template

Create an app and variant from a template.

Args: payload (CreateAppVariant): The payload containing the app and variant information. stoken_session (SessionContainer, optional): The session container. Defaults to Depends(verify_session()).

Raises: HTTPException: If the user has reached the app limit or if an app with the same name already exists.

Returns: AppVariantResponse: The output of the created app variant.

Request

Body

required
    app_name App Name (string)required
    template_id Template Id (string)required
    project_idobject
    anyOf
    string
    workspace_idobject
    anyOf
    string
    env_varsobjectrequired
    property name* string
    organization_idobject
    anyOf
    string

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
    project_id Project Id (string)required
    parametersobject

    required

    anyOf
    base_name Base Name (string)required
    base_id Base Id (string)required
    config_name Config Name (string)required
    uriobject

    required

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