Request body for Importing contacts with CSV file

Hello,

 

I'm looking for help with using the contact_files_import API endpoint. When sending my request I am receiving a "Unable to parse the request body as multipart form-data" error. When I manually enter the file and list_id I intend to use on the API documentation page the action is successful. However, when using my program I keep getting the error.  Below is what I'm using based on what the documentation is saying by including "list_ids" and "file" as the request body arguments. Am I missing something here?  I am using python. 

 

    email_payload= {     
        "list_ids" : ["<List ID>"],
        "file" : "file_name.csv"
    }
    
11 replies

Leaderboard