curl --request PUT \
--url https://app.langwatch.ai/api/prompts/{id} \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: <api-key>' \
--data '{
"name": "<string>"
}'
{
"id": "<string>",
"name": "<string>",
"updatedAt": "<string>"
}
Update a prompt
curl --request PUT \
--url https://app.langwatch.ai/api/prompts/{id} \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: <api-key>' \
--data '{
"name": "<string>"
}'
{
"id": "<string>",
"name": "<string>",
"updatedAt": "<string>"
}
Success
The response is of type object
.
Was this page helpful?