sendgrid / sendgrid-nodejs

The Official Twilio SendGrid Led, Community Driven Node.js API Library
https://sendgrid.com
MIT License
3k stars 782 forks source link

/v3/marketing/contacts/import CSV body field #1328

Closed enijar closed 2 years ago

enijar commented 2 years ago

Issue Summary

There is no documentation for how to upload a CSV file to the /v3/marketing/contacts/imports endpoint.

Steps to Reproduce

await request({
  method: "PUT",
  url: "/v3/marketing/contacts/imports",
  body: {
    list_ids: ["example-list-id"],
    file_type: "csv",
  },
})

The response is 200, but I don't know how to upload a CSV file via this API.

Technical details:

beebzz commented 2 years ago

Hi @Enijar! Please file a ticket with SendGrid customer support in order to properly debug this issue.