curl --request POST \
--url https://api.lunary.ai/v1/datasets/variations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"promptId": "<string>",
"variables": {},
"idealOutput": "<string>"
}'
{
"id": "<string>",
"promptId": "<string>",
"variables": {},
"idealOutput": "<string>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Created prompt variation
The response is of type object
.
curl --request POST \
--url https://api.lunary.ai/v1/datasets/variations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"promptId": "<string>",
"variables": {},
"idealOutput": "<string>"
}'
{
"id": "<string>",
"promptId": "<string>",
"variables": {},
"idealOutput": "<string>"
}
curl --request POST \
--url https://api.lunary.ai/v1/datasets/variations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"promptId": "<string>",
"variables": {},
"idealOutput": "<string>"
}'
{
"id": "<string>",
"promptId": "<string>",
"variables": {},
"idealOutput": "<string>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Created prompt variation
The response is of type object
.
curl --request POST \
--url https://api.lunary.ai/v1/datasets/variations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"promptId": "<string>",
"variables": {},
"idealOutput": "<string>"
}'
{
"id": "<string>",
"promptId": "<string>",
"variables": {},
"idealOutput": "<string>"
}