ElHoussaineEl_Hila | 2023-11-30 15:51:20 UTC | #1
Hi, How to check if a queue uses a Default Script via API? Because when i get queue details via /api/v2/routing/queues/{queueId}, i only get the script id in defaultScripts, and when i look for details of this script via: /api/v2/scripts/{scriptId} I got: not found error!
Zino_Onokpise | 2023-11-30 22:33:31 UTC | #2
Hi ElHoussaineEl_Hila,
You may want to check if the script you are looking for has been deleted. To answer your initial question, you're doing the right thing by querying for queue details via /api/v2/routing/queues/{queueId} and searching for the script via /api/v2/scripts/{scriptId} . I was able to follow these same steps and find a default script attached to a queue.
Zino.
ElHoussaineEl_Hila | 2023-12-02 12:37:48 UTC | #3
Hi @Zino_Onokpise, What i want to do is to get the name of the script assigned to the queue, but when it is a default one (ex: Default Inbound Script), i do not found the script using the api: /api/v2/scripts/{scriptId} and get a 404 http error!
Jerome.Saint-Marc | 2023-12-04 09:12:12 UTC | #4
Hello,
GET /api/v2/scripts or GET /api/v2/scripts/{scriptId}, ... return the scripts you have created/edited in your Genesys Cloud organization (Scripts specific to your Genesys Cloud organization that may or may not be published).
Default scripts (Default Inbound Script, ...) do NOT have a script object that can be edited. That's why you get a 404.
GET /api/v2/scripts/published or GET /api/v2/scripts/published/{scriptId} return all the published scripts available to your Genesys Cloud organization. This includes the scripts that you have created and published in your Genesys Cloud organization AND the default scripts. So /api/v2/scripts/published/{scriptId} should return something on your Default Scripts.
Regards,
system | 2024-01-03 09:12:24 UTC | #5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 23435