Skip to main content

Create Attributes

POST 

/api/v1/attributes

Create a list of attributes for a given why_prompt.

Parameters:

  • req: AttributesRequest object containing:
    • why_prompt: The main concept or input question
    • country: Target country
    • attribute_count: Number of attributes to generate (optional)
    • prompt_type: Type of prompt to use (optional)
    • llm_model: Language model to use (optional)

Returns:

  • List of attributes.

Example Response:

[
"Price",
"Range",
"Charging Time",
"Safety Rating"
]

Raises:

  • HTTPException 404: If an error occurs during creation

Request

Responses

Successful Response