Import script via HTTP request

Hello,

I want to import a script using HTTP request.
At the resources (here) says to post a request at (https://apps.mypurecloud.com/uploads/v2/scripter), but when I am making the post request, I am getting 401 error with empty message and if I try from postman, I get 404 error.
I want to ask:

  1. Is the above url correct and valid?
  2. If the url is invalid, is there another way to import a script via API or HTTP?

Thank you

Hello,

Yes, the url is correct and valid.
That is the same url that the PureCloud client uses when importing a script.
A POST to this url with Content-Type in multipart/form-data

A 401 Unauthorized error indicates that you have provided invalid or missing credentials.
A valid auth token should be added to the authorization header as it is shown in the Import Scripts example. Token that you get from an Implicit Grant flow (as an example).

Regards,

Hello,

I managed to do it.
Thank you for your help.

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