jluncford | 2021-09-30 07:29:49 UTC | #1
I'm calling https://api.usw2.pure.cloud/api/v2/conversations/callbacks to enter data into a message queue. One of the data fields I want to enter is greater than 100 characters. How can I raise the limit? This is destined for the Participant Data section on an Interaction.
{"message":"Additional info value length must be no larger than 100","code":"bad.request","status":400,"contextId":"6d955c0e-4401-4f54-ab76-04d84afaa4d0","details":[],"errors":[]}
Jason_Mathison | 2021-09-30 11:42:34 UTC | #2
You can request a change to the limit along with your use case at https://genesyscloud.ideas.aha.io/ideas
--Jason
Jerome.Saint-Marc | 2021-09-30 13:33:18 UTC | #3
Hello,
As a workaround, you could do something in 3 steps:
- Create your Callback with POST /api/v2/conversations/callbacks
--> you will get a conversationId in return
- Get the conversation context with GET /api/v2/conversations/{conversationId}
--> to retrieve the customer's participantId from the context (first participant with purpose = customer or external)
- Update the participant attributes with PATCH /api/v2/conversations/{conversationId}/participants/{participantId}/attributes using the conversationId and the participantId form previous responses
It seems that the update of participant attributes is not limited to 100 characters. I just tried with 102 characters. I don't know what the limit is on this request and if it would be enough for your data length. It is worth trying (using the API Explorer in Developer Tools.
Regards,
jluncford | 2021-09-30 16:59:42 UTC | #4
Jason, I would if I could, we have SSO for Genesys which isn't working for the link you provided, and I can't get logged in to make the request.
jluncford | 2021-10-01 06:29:28 UTC | #5
Jerome,
Thank you, your workaround works for my text message. I tested it with over 2400 characters and it worked fine. I did have to add a sleep between the creation of the callback and the call to get the conversation to give Genesys enough time to realize the conversation was there. When I made the calls back to back the conversation wasn't found. I gave it 5 seconds just to be safe which is fine for what I'm doing.
Janice
Jason_Mathison | 2021-10-01 14:13:26 UTC | #7
I was told that CustomerCare@Genesys.com should be able to help you with your SSO / ideas login problem.
--Jason
jluncford | 2021-10-02 03:40:34 UTC | #8
Jason,
Thank you. I really appreciate the quick response I've had on all the issues I've posted this week.
Janice
system | 2021-11-02 03:41:21 UTC | #9
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: 12197