Export user promts

Is there an easy way to export user promts so you can fix it and import again?
I will also use the exported file for documentation to the customer.

The "/api/v2/ architect/prompts" does not return a usable result
Can you filter the API so that you only receive "name", "description"?

Is there an easy way to export user promts so you can fix it and import again?
If you're talking about the ttsString and/or text fields, use the get /api/v2/architect/prompts/{promptId}/resources/{languageCode} endpoint to see what they are and the put /api/v2/architect/prompts/{promptId}/resources/{languageCode} endpoint to change them.
If you're talking about a recording you've uploaded, use the get /api/v2/architect/prompts/{promptId}/resources/{languageCode} endpoint. The response has a mediaUri field that you can use to download the recording. To upload a new recording, post your file to the uploadUri for the prompt resource. https://developer.genesys.cloud/routing/architect/prompts/upload-prompts-guide#upload-the-audio-file has an example

Can you filter the API so that you only receive "name", "description"?

No the api does not have a filter for which fields to return. However once you have the response you can write code to only print out or save what you care about.

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.