What API endpoint to use to get a list of tasks for a flow?

Hello,

I'm trying to use the API (Javascript, purecloud-platform-client-v2) and am trying to get a list of the tasks in a Flow. I was thinking these might be prompts but using the getArchitectPrompts does not come back with anything. Also, feeding an ID doesn't help either.

Are the tasks actually prompts? My end goal is to change the text in a prompt's TTS to a different value.

Thanks in advace.

Upon further troubleshooting, I tried:

/api/v2/flows/{flowId}/latestconfiguration

And that worked, I got the configuration and I found what I'm trying to change. It's listed under
"actionList": [

What API call do I need to do to modify this item under actionList? I want to change the text that is being processed. Thanks!

...
{
"trackingId": 168,
"id": "4a7540ee-0937-483b-aee1-3596cd6619ed",
"name": "Play Audio",
"uiMetaData": {
"colapsed": false
},
"__type": "PlayAudioAction",
"prompts": {
"bargeInExpression": {
"config": {
"lit": {
"pos": 1,
"text": "true",
"type": "bln"
}
},
"text": "true",
"type": "bln",
"uiMetaData": {
"mode": 1
},
"metaData": {},
"version": 2
},
"flushExpression": {
"config": {
"lit": {
"pos": 1,
"text": "false",
"type": "bln"
}
},
"text": "false",
"type": "bln",
"uiMetaData": {
"mode": 1
},
"metaData": {},
"version": 2,
"outOfService": true
},
"defaultAudio": {
"config": {
"AudioPlaybackOptions": {
"pos": 1,
"text": "AudioPlaybackOptions(ToAudioTTS("All services are operating normally"), true)",
"operands": [
{
"ToAudioTTS": {
"pos": 22,
"operands": [
{
"lit": {
"pos": 33,
"text": "All services are operating normally",
"type": "str"
}
}
],
"type": "aud"
}
},
{
"lit": {
"pos": 73,
"text": "true",
"type": "bln"
}
}
],
"type": "aud"
}
},
"text": "AudioPlaybackOptions(ToAudioTTS("All services are operating normally"), true)",
"type": "aud",
"uiMetaData": {
"sequenceItems": [
{
"type": 0,
"parameter": "All services are operating normally",
"error": ""
}
],
"customExpressionMode": false
},
"metaData": {}
},
"cases": []
}
},

type or paste code here

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