curl --request PATCH \
--url https://api.lunary.ai/v1/datasets/prompts/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"messages": [
{
"role": "<string>",
"content": "<string>"
}
]
}'
{
"id": "<string>",
"datasetId": "<string>",
"messages": [
{
"role": "<string>",
"content": "<string>"
}
]
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Updated prompt
The response is of type object
.
curl --request PATCH \
--url https://api.lunary.ai/v1/datasets/prompts/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"messages": [
{
"role": "<string>",
"content": "<string>"
}
]
}'
{
"id": "<string>",
"datasetId": "<string>",
"messages": [
{
"role": "<string>",
"content": "<string>"
}
]
}
curl --request PATCH \
--url https://api.lunary.ai/v1/datasets/prompts/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"messages": [
{
"role": "<string>",
"content": "<string>"
}
]
}'
{
"id": "<string>",
"datasetId": "<string>",
"messages": [
{
"role": "<string>",
"content": "<string>"
}
]
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Updated prompt
The response is of type object
.
curl --request PATCH \
--url https://api.lunary.ai/v1/datasets/prompts/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"messages": [
{
"role": "<string>",
"content": "<string>"
}
]
}'
{
"id": "<string>",
"datasetId": "<string>",
"messages": [
{
"role": "<string>",
"content": "<string>"
}
]
}