Rest endpoint:bulk/v1/activities/export/create.json
JSON payload when creating job is:
{
"format" : "CSV",
"filter" : {
"createdAt" : {
"startAt" : "2020-10-27T23:59:59-00:00",
"endAt" : "2020-10-28T23:59:59-00:00"
},
"activityTypeIds" : [ 12 ],
"columnHeaderNames" : {
"leadId" : "ID",
"activityTypeId" : "activityTypeId"
},
"fields" : [ "leadId", "activityTypeId" ]
}
}
IIRC fields is a top-level property, not a property of filter.