cURL
curl --request POST \ --url https://api.production.hyperoru.com/api/prompts \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "created_by": "<string>", "description": "<string>", "template_text": "<string>" } '
{ "created_by": "<string>", "id": 123, "is_deleted": true, "is_system": true, "key": "<string>", "name": "<string>", "system_template_text": "<string>", "template_text": "<string>", "created_at": "<string>", "description": "<string>", "updated_at": "<string>", "updated_by": "<string>" }
Session token issued by POST /api/users/login, transported as Authorization: Bearer <token>.
POST /api/users/login
Authorization: Bearer <token>
Create prompt template
Was this page helpful?