Bulk Program Member Import Not really sure what I am doing wrong but my Bulk Member Import is failing. This is a bulk import on a Webinar with the following status options (Invited, Waitlisted, Registered, No Show, Attended, Attended On-Demand)
Here is my code
endpoint = '/bulk/v1/program/'+str(program_id)+'/members/import.json'args = {'access_token': access_token,'format': 'csv','programId': str(program_id),'programMemberStatus': 'Invited'}with open('C:\Python27\Code\Python\Test Scripts\eventlist.csv', 'rb') as oFile:files = {'file': ('eventlist.csv', oFile, 'text/path')}resp = requests.post(host1 + endpoint, params=args, files=files)print(resp.headers)print(resp.json())
Here is the error message -
{'Date': 'Thu, 13 Jul 2023 17:46:20 GMT', 'Server': 'nginx', 'Connection': 'Keep-Alive', 'Content-Type': 'application/json;charset=UTF-8', 'Content-Encoding': 'gzip', 'Transfer-Encoding': 'chunked'}{'requestId': 'd20b#184556c6864, 'success': False, 'errors': [{'code': '1006', 'messag