Skip to main content

Create Levels

POST 

/api/v1/levels

Create levels for given attribute(s) of an why_prompt.

Parameters:

  • req: LevelsRequest object containing:
    • why_prompt: The main concept or input question
    • country: Target country
    • attributes: List of attributes to generate levels for
    • level_count: Number of levels per attribute (optional)
    • llm_model: Language model to use (optional)

Returns:

  • List of attributes with their levels.

Raises:

  • HTTPException 404: If an error occurs during creation

Request

Responses

Successful Response