Skip to main content
PUT
/
template
/
{id}
Update template
curl --request PUT \
  --url https://api.promptmetrics.dev/template/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "parent_id": "<string>",
  "rating": 3
}
'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json
name
string
description
string
parent_id
string | null
rating
number
Required range: 1 <= x <= 5

Response

200

Template updated