ai
GET
https://hermeticor.com /v1/ai/prompt-templates Parameters
resourceRefstringquerylimitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/v1/ai/prompt-templates" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"name": "string",
"prompt": "string",
"resourceRef": "string",
"createdAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem158[]requiredShow child parameters
idstringrequirednamestringrequiredpromptstringrequiredresourceRefstringrequiredcreatedAtstringrequirednextCursorstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /v1/ai/prompt-templates Request body
application/json
namestringrequiredpromptstringrequiredresourceRefstring{
"name": "string",
"prompt": "string",
"resourceRef": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/ai/prompt-templates" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","prompt":"string","resourceRef":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"name": "string",
"prompt": "string",
"resourceRef": "string",
"createdAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequirednamestringrequiredpromptstringrequiredresourceRefstringrequiredcreatedAtstringrequiredPUT
https://hermeticor.com /v1/ai/prompt-templates/{id} Parameters
idstringpathrequiredRequest body
application/json
namestringrequiredpromptstringrequiredresourceRefstring{
"name": "string",
"prompt": "string",
"resourceRef": "string"
}Code samples
cURL
curl -X PUT "https://hermeticor.com/v1/ai/prompt-templates/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","prompt":"string","resourceRef":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
DELETE
https://hermeticor.com /v1/ai/prompt-templates/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/ai/prompt-templates/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredUpdated