Re: Bulk Data Extract

ok82
Level 2

Bulk Data Extract

Hello Community,

 

I have created a sample job using postman using this endpoint: 

POST /bulk/v1/leads/export/create.json

 

with this request body: 

{
   "fields": [
      "firstName",
      "lastName"
   ],
   "format": "CSV",
   "columnHeaderNames": {
      "firstName": "First Name",
      "lastName": "Last Name"
   },
   "filter": {
      "createdAt": {
         "startAt": "2023-01-01T00:00:00Z",
         "endAt": "2023-01-31T00:00:00Z"
      }
   }
}

 

I am getting this response: 

{
    "requestId": "49f#196d2e99cbf",
    "result": [
        {
            "exportId": {export_id},
            "format": "CSV",
            "status": "Created",
            "createdAt": "2025-05-15T07:47:27Z"
        }
    ],
    "success": true
}
 
I not able to start the job this is the end point i am using: 
{{base_url}}/bulk/v1/leads/export/{{export_id}}/enqueue.json
 
The client_id, client_secret, and, base url and access token is correct but still getting this error
 
Thank you.
3 REPLIES 3
SanfordWhiteman
Level 10 - Community Moderator

Re: Bulk Data Extract

What is the error, though? You haven't shown the error from Enqueue Job.
ok82
Level 2

Re: Bulk Data Extract

This is the error that received:

 
{
    "requestId": "13da6#196d2e2a19b",
    "success": false,
    "errors": [
        {
            "code": "610",
            "message": "Requested resource not found"
        }
    ]
}

SanfordWhiteman
Level 10 - Community Moderator

Re: Bulk Data Extract


{{base_url}}/bulk/v1/leads/export/{{export_id}}/enqueue.json

That’s the correct URL template, although it’s better expressed like so:

https://{{MunchkinID}}.mktorest.com/bulk/v1/leads/export/{{BulkExportID}}/enqueue.json

 

However, we can’t see what you’re actually putting on the wire after substituting those variables. Most likely, you misspelled something and created a nonexistent path. Even a trailing space will do that.