Unable to upload csv file in Genesys via POSTMAN

We have tried to unable to upload csv file in Genesys via POSTMAN,

https://www.postman.com/postman/workspace/postman-answers/documentation/13455110-00378d5c-5b08-4813-98da-bc47a2e6021d

Note: Genesys was introduced toggle button to retain the white space However, it is not working so Genesys has suggsted to upload the csv file through POSTMAN application while we are uploading we re getting 400 bad request error, Could you please help us to fix this?

Thanks,

Sathish Manoharan

Hey @research-physicist-5 :wave:

Welcome to the Postman Community! :postman:

I’m not sure what it is you’re trying to do here - That link is to a Collection showing different methods to upload a file. It’s not specific to a particular API.

Are you following some public documentation for Genesys? I don’t actually know what that is or what API you’re using or how that payload is structured for uploading files.

Can you provide more details and context of what you’re doing, please?

Hi Danny,

Thanks for your response,

Please find the attached steps to upload a contact list from POSTMAN to Genesys, but we are getting 400 bad request error.

Thanks,

Sathish Manoharan

You probably could have just pasted those into your response rather than post a cropped screenshot.

Those instructions look like you’re only setting up the Auth for the request and not the data that you’re posting to the endpoint. That would cause the 400 error, if it was an Auth problem it would be a different status code.

What is the payload of the request that you’re sending?

Hi Danny,

We have successfully authorized the connection to Genesys Cloud through Postman; however, when attempting to upload contacts to the contact list, we are encountering a 400 Bad Request error,

https://api.{{environment}}/api/v2/outbound/contactlists/:contactListId/contacts?priority={{priority}}&clearSystemData={{clearSystemData}}&doNotQueue={{doNotQueue}}

{{environment}} - replaced Purecloud url (euw2.pure.cloud)
contactListId - replaced the newly create contact list ID

Note: we have successfully created a contact list thrugh POSTMAN but the same contact list we are unable to upload contacts,

Please let us know how to upload a contacts in the contact list through POSTMAN,

Thanks,

Sathish Manoharan

If it’s a 400 Bad Request code, it’s likely related to the request payload and how it’s structured.

I have no idea what the request structure of that particular API should be, the documentation should be telling you this.

It looks like this is the request:

The payload format:

[
  {
    "id": "",
    "contactListId": "",
    "data": {
      "": ""
    },
    "callable": true,
    "phoneNumberStatus": {},
    "contactableStatus": {}
  }
]

What does your request look like and how are you using the csv file for this?

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