Update post-call questions
curl --request PATCH \
--url https://api.callrounded.com/v1/agents/{agent_id}/post-call-questions \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"questions": [
{
"name": "<string>",
"description": "<string>",
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"optional": false,
"model": "gpt-3.5-turbo",
"examples": [
"<string>"
],
"options": [
{
"value": "<string>",
"option_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}
]
}
'
{
"message": "<string>",
"data": {
"created": [
{
"name": "<string>",
"description": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>",
"is_active": true,
"question_origin": "system",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"optional": false,
"model": "gpt-3.5-turbo",
"options": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"value": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
],
"examples": [
"<string>"
]
}
],
"updated": [
{
"name": "<string>",
"description": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>",
"is_active": true,
"question_origin": "system",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"optional": false,
"model": "gpt-3.5-turbo",
"options": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"value": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
],
"examples": [
"<string>"
]
}
],
"errors": [
{}
]
},
"error": {
"details": [
{
"field": "email",
"message": "Invalid email format"
}
],
"message": "An error occurred while processing your request",
"status": 400,
"type": "generic_error"
},
"status": 200
}