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.
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
}
You know what I need, Yim.
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.
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.
I noticed that too as I was looking through the endpoint page, but yields the same result:
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
}
Figured it out, /rest/ isn't supposed to be there.
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