Like a Design

Add a design to your personas liked collection. Save a design to your liked collection by creating a training.

Endpoint

POST /v2/personas/:persona_id/trainings

Parameters

Parameter
Type
Description

image

string

extras

string

Optional. Prompt of the liked design.

Example Request

curl -X POST https://api.luw.ai/v2/personas/123/trainings \
    -H "Authorization: Bearer YOUR_API_TOKEN" \
    -d "image=https://example.com/interior-design.jpg" \
    -d "extras=cozy living room"

Response

{
    "status": true,
    "training_id": 789
}

Note: Using the training endpoint without a slot allows you to save (like) designs to your persona's collection.

To remove likes, you can use Remove Training Endpoint with training_id returns from Luw.ai API.

Last updated