cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
196
Views
0
Helpful
1
Replies
Highlighted

Using Rest_Client element for POST API

Dears,

I am trying to trigger POST API using the call studio Rest_Client element but It's not working. However, I am using the same setting in POSTMAN and Its working fine !!

UCCE , CVP , call studio versions : 11.5

Simple IVR application:

Welcome message > Menue > press 1 to trigger the POST API>  Rest_Client > End

Here are the Rest_Client element settings:

Endpoint:https://<FQDN>//unifiedconfig/config/campaign/5004/import

HTTP Method: POST

Parameters:

Ignore Certificate Validation: true

Require HTTP auth: true

Username: username@FQDN

PW: password

Headers:

Body:

     <import>

          <overwriteData>true</overwriteData>

              <fileContent>

                  <![CDATA[

                  AccountNumber,FirstName,LastName,Phone01

                  6782,Mohamed,Youssef,72072415

                  ]]>

                  </fileContent>

                   <delimiter>,</delimiter>

                    </import>

Use Proxy: false

Connection Timeut:3000

Read Timeout: 5000

For the CVP logs: Attached is the activity logs. there are no error logs been generated!

Everyone's tags (3)
1 REPLY 1
Highlighted

Re: Using Rest_Client element for POST API

Hi Mohamed

You will need to write the response body to the logs.  On the general tab of your REST_Client element go to the add to log section. Add in any name such as log,.response , then {Data.Element.Rest_Client.response_body} in the value and create after.

This will let you know if you are actually getting a response or not and you can continue troubleshooting from there

CreatePlease to create content