Using the new bulk apis?

jim_jim_lam_Lam
Level 3

Using the new bulk apis?

Has anyone been able to use the new bulk apis?​ Whenever I try to use the create job or get job (or even the sample call provided in the docs), nothing is returned to me - even though I get a 200 response status.

14 REPLIES 14
Anonymous
Not applicable

Re: Using the new bulk apis?

I am also unable to get this to work.

When I try and use a POST (as in the documentation example) I get:

{

    "requestId": "f0a2#15cc145664d",

    "success": false,

    "errors": [

        {

            "code": "605",

            "message": "Request method 'POST' not supported"

        }

    ]

}

When I use a GET:

{

    "requestId": "13a38#15cc144eab6",

    "result": [],

    "success": true

}

Justin_Norris1
Level 10 - Champion Alumni

Re: Using the new bulk apis?

Maybe Kenny Elkington​ can help on this one.

Kenny_Elkington
Marketo Employee

Re: Using the new bulk apis?

You know what I need, Yim.

jim_jim_lam_Lam
Level 3

Re: Using the new bulk apis?

Hi Kenny. Can you direct me into finding what you are asking for? I am using this exact example, and there is nothing returned to me.

pastedImage_2.png

pastedImage_3.png

Kenny_Elkington
Marketo Employee

Re: Using the new bulk apis?

Of course, there was a typo in the doc.  The path to create a job is "/bulk/v1/leads/export/create.json"  not "/bulk/v1/leads/export.json".  I've corrected the docs.

jim_jim_lam_Lam
Level 3

Re: Using the new bulk apis?

I noticed that too as I was looking through the endpoint page, but yields the same result:

pastedImage_0.png

Anonymous
Not applicable

Re: Using the new bulk apis?

I was able to get it to work with the corrected URL and using a POST:
I also set the following Headers: 

Content-Type:  application/json

Accept: application/json

{

    "requestId": "43fb#15cc17b2d66",

    "result": [

        {

            "exportId": "dc51eba7-741d-4f85-bb56-52efda334b27",

            "format": "CSV",

            "status": "Created",

            "createdAt": "2017-06-19T17:51:34Z"

        }

    ],

    "success": true

}

jim_jim_lam_Lam
Level 3

Re: Using the new bulk apis?

Figured it out, /rest/ isn't supposed to be there.

Anonymous
Not applicable

Re: Using the new bulk apis?

Did it work after you correct the URL? I can submit the request, but the job itself is stuck in "Queued" status.

See: Bulk API: extracting activities job stuck in Queued status