curl --request PUT \
--url https://api.pathors.com/v1/projects/{projectId}/agent \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"globalPrompt": "<string>",
"timezone": "<string>",
"memoryEnabled": true,
"searchKnowledgeBaseEnabled": true,
"promptModules": [
{
"name": "<string>",
"description": "<string>",
"content": "<string>",
"enabled": true
}
],
"beforeStartConfig": {
"enabled": true,
"mode": "<string>",
"toolTemplates": [
{
"toolName": "<string>",
"toolId": "<string>",
"parameters": {}
}
]
},
"postSessionWebhook": {
"url": "<string>",
"headers": [
{
"key": "<string>",
"value": "<string>"
}
],
"events": []
},
"postSessionVariableKeys": [
"<string>"
],
"postEvaluationConfig": {
"enabled": true,
"prompt": "<string>",
"enumOptions": [
"<string>"
],
"numberConfig": {
"min": 123,
"max": 123
}
},
"placeholderMessages": {
"messages": {},
"defaultLanguage": "<string>"
},
"variableConfigs": [
{
"key": "<string>",
"type": "string",
"description": "<string>"
}
],
"voiceIntelligence": {
"ageEnabled": true,
"genderEnabled": true,
"voicemailDetectionEnabled": true,
"languageDetectionEnabled": true
}
}
'