ayusuf | 2022-10-27 00:42:23 UTC | #1
Hi Folks! I'm trying to create a callback through the API /API/v2/conversations/callbacks and trying to create a callback with tomorrow's date but I got an error like this
{
- "message": "The callback scheduled time cannot be more than 2 hours into the future",*
- "code": "callback.error.scheduled.time.too.far.in.future",*
- "status": 400,*
- "messageWithParams": "The callback scheduled time cannot be more than {time} into the future",*
- "messageParams": {*
- "time": "2 hours"*
- },*
- "contextId": "xxxxxx",*
- "details": [],*
- "errors": []*
}
do you guys ever found this? how I can create a callback for more than 2 hour Thanks in advance!
Jerome.Saint-Marc | 2022-10-27 21:56:04 UTC | #2
Hello,
I assume it is because you are trying to create an Agent Owned Callback - i.e. with this inside the body:
... "routingData": { "queueId": "00000000-0000-0000-0000-000000000000", "scoredAgents": [ { "agent": { "id": "00000000-0000-0000-0000-000000000000" }, "score": 100 } ], "routingFlags": [ "AGENTOWNEDCALLBACK" ] } ...
And that the Queue you are using for this callback request is set has its" Agents can schedule a callback in advance for" setting (Queue configuration - Callback tab) set to 2 hours (default). See Callback channels section on this page.
You can increase this time in the Queue configuration - Callback time - Min 1h - Max 30 days.
Regards,
ayusuf | 2022-10-27 21:56:40 UTC | #3
Jerome.Saint-Marc, post:2, topic:16920
routingFlags
Great, thanks! I've already tested it's working!
system | 2022-11-27 21:56:51 UTC | #4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 16920