Invalid Content-Type on Bulk API call
Hi everyone
Having some trouble with a Marketo Bulk API job. Here's the Python code:
# marketo params
parameters = {
'format': 'csv',
'access_token': access_token,
'createdAt': '{"startAt": "2020-02-15T23:59:59-00:00","endAt": "2020-02-26T23:59:59-00:00"}',
'activityTypeIds': '[113]'
}
headers = {'accept': 'application/json'}
# first call
response = requests.post(
"https://(redacted).mktorest.com/bulk/v1/activities/export/create.json",
params=parameters,
headers=headers
)
The error I get is 612 - invalid content type. This is a little confusing to me though. I'm not uploading a multipart file or anything, so shouldn't it be regular application/json?
Thanks.