Update a prompt
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>"
}
]
}Datasets
Update a prompt
PATCH
/
v1
/
datasets
/
prompts
/
{id}
Update a prompt
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>"
}
]
}Authorizations
Use a project private API key via Authorization: Bearer <key>.
Path Parameters
Body
application/json
Show child attributes
Show child attributes