cURL
curl --request POST \ --url https://api.promptmetrics.dev/template \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "workspace_id": "<string>" } '
{ "responseData": { "data": { "_id": "<string>", "workspace_id": "<string>", "parent_id": "<string>", "name": "<string>", "description": "<string>", "is_folder": true, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" } } }
Creates a new prompt template or folder. Templates are automatically assigned a default version.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Template created successfully
Show child attributes