cURL
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" } } }
Restores a soft-deleted template and its children.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Template restored
Show child attributes