Skip to main content
POST
/
template
/
{id}
/
restore
Restore template
curl --request POST \
  --url https://api.promptmetrics.dev/template/{id}/restore \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "workspace_id": "<string>"
}
'
{
  "responseData": {
    "data": {
      "_id": "template_123",
      "name": "Restored Prompt"
    }
  }
}

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
workspace_id
string
required

Response

200 - application/json

Template restored

responseData
object