Copy
curl -X PUT "https://api.chanl.ai/api/v1/workspaces/ws_123/personas/persona_456" \
-H "Authorization: Bearer <access_token>" \
-H "Content-Type: application/json" \
-d '{
"name": "Very Frustrated Customer",
"prompt": "You are an extremely frustrated customer who has been having issues with your service for weeks. You are very impatient and want immediate resolution. You have already called multiple times without success.",
"difficulty": "very_hard",
"tags": ["frustrated", "impatient", "support", "repeat_caller"]
}'
Copy
{
"success": true,
"data": {
"persona": {
"id": "persona_456",
"name": "Very Frustrated Customer",
"language": "en",
"prompt": "You are an extremely frustrated customer who has been having issues with your service for weeks. You are very impatient and want immediate resolution. You have already called multiple times without success.",
"emotion": "frustrated",
"difficulty": "very_hard",
"backgroundNoise": "office",
"tags": ["frustrated", "impatient", "support", "repeat_caller"],
"updated_at": "2024-01-15T10:45:00Z"
}
}
}