Hi there,
I am new to Genesys Cloud and looking for a way to add many wrap-up codes to the system. I found in API explorer this for adding:
{
"name": "Wrap-up1",
"dateCreated": "",
"dateModified": "",
"modifiedBy": "",
"createdBy": ""
}
I have a few questions for this
Do I leave the "optional" fields blank if I don't put anything there?
Looking to understand what the above looks like if I want to add multiple codes at one time. Example Wrap-Up1, Wrap-Up2, etc....
Welcome to Genesys Cloud!
You can use POST /api/v2/routing/wrapupcodes to create new wrap up codes. You cannot create more than one at a time; there is no bulk variety of this endpoint. Once created, you can bulk assign them to queues using POST /api/v2/routing/queues/{queueId}/wrapupcodes .
The only property you should set is name
. The rest are meant to be readonly for the request.
Make multiple requests. Be sure to take note of the Platform API Rate Limits and associated API behavior when making many requests quickly.
1 Like
Thank you Tim!
Much appreciate the quick response and great infomation!!
jheckbert:
{
"name": "Wrap-up1",
"dateCreated": "",
"dateModified": "",
"modifiedBy": "",
"createdBy": ""
}
Just in case Tim wasn't clear, the general way to handle optional fields is to not supply them at all, not to leave them blank, so literally just send;
{
"name": "Wrap-up1"
}
And only supply elements you want to explicitly set/send values for.
2 Likes
system
Closed
February 20, 2022, 4:47pm
6
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.