curl --request PATCH \
--url https://api.example.com/api/v2/projects/{project_id}/prompt-templates/id/{template_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'{}Rename a prompt template. Use when refactoring template names across your codebase.
curl --request PATCH \
--url https://api.example.com/api/v2/projects/{project_id}/prompt-templates/id/{template_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'{}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
EmptyResponse()
The response is of type EmptyResponse · object.