Skip to main content

Hello,
Does anyone was able to  upload data tables by api, we have this documentation, but when trying to make the post we get error saying that the "Service Unavailable for url” 
https://cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.dataTables/upload?rep_location=us

Using this 
"POST https://chronicle.us.rep.googleapis.com/upload/v1alpha/{parent}/dataTables:bulkCreateDataTableAsync”

Hi ​@Alex3Lee5,

I use that API method regularly. Here is the code I use that you might find helpful.

Please let me know if that helps.


Hi ​@David-French ,
In this code the url that use to make the post are variables could you confirm if the url used is this one ?
https://chronicle.us.rep.googleapis.com/upload/v1alpha/{parent}/dataTables:bulkCreateDataTableAsync
Or its another ?


@Alex3Lee5 my URL looks like this: https://us-chronicle.googleapis.com/upload/v1alpha/{parent}/dataTables:bulkCreateDataTableAsync

Can you try using the prefix https://us-chronicle.googleapis.com and let me know how it goes?


I got the error 40 Not Found.
*Correction the new url went with the error 400 with bad request, i will adjust the payload and check, thanks


@David-French  the solution worked thanks.