Hey guys,
So, I'm trying to upload a csv of emails to a list. I'm following the API doc and attempting to post via cURL. I've attached images of the curl command and response.
C:\>curl --trace-ascii -v -k -i --header "content-type:application/json" -F access_token=<here's where I paste the access token> -F format=csv -F file=@AddToList.csv -F listId=ST49394A1LA1 -F lookupField=email https://823-CFH-542.mktorest.com/rest/v1/leads.json
The response is: code 600: Access token not specified. Pretty straight forward except that I see that I am indeed sending the access token in the outgoing message:
=> Send data, 395 bytes (0x18b)
0000: --------------------------34e293bdcdb66e1d
002c: Content-Disposition: form-data; name="access_token"
0061:
0063: <My Access token shows here>
008c: --------------------------34e293bdcdb66e1d
00b8: Content-Disposition: form-data; name="format"
00e7:
00e9: csv
00ee: --------------------------34e293bdcdb66e1d
011a: Content-Disposition: form-data; name="file"; filename="AddToList
015a: .csv"
0161: Content-Type: application/octet-stream
Any suggestions are greatly appreicated.