Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am trying to create ODAG links using the ODAG API, but am getting a "Method Not Allowed" error. I've been successful in using all Repository APIs using the same method and am at a loss about why ODAG doesn't work.
Url: https://xxxxxxxxxxxx:4242/api/odag/v1/links?xrfkey=0123456789abcdef
Payload:
"{\"name\":\"See Products\",\"selectionApp\":\"2eed5ee0-c584-48e8-8acf-719230831352\",\"templateApp\":\"5a6868eb-5347-42f2-b79e-01c453409c7f\",\"rowEstExpr\":\"count(Product)\",\"properties\":{\"rowEstRange\":[]}}"
Error: "The remote server returned an error: (405) Method Not Allowed."
Yes, you can, but the endpoint URL will be different.
If you call it with JWT or ticket, the endpoint URL is https://servername/api/odag/v1/links
if you call it with a certificate, then the endpoint URL will be https://servername:9098/v1/links
Hello @hermandup_anz
Is this the documentation you have followed ?
4242 is the repository API port, you're trying to call the ODAG API, that is a different service.
I did look at the example, yes. I am passing a certificate for authentication when using the repository API. Will that work for ODAG as well or is JWT and ticketing my only options for ODAG authentication?
Yes, you can, but the endpoint URL will be different.
If you call it with JWT or ticket, the endpoint URL is https://servername/api/odag/v1/links
if you call it with a certificate, then the endpoint URL will be https://servername:9098/v1/links
That worked. Thanks so much!
Hi Damien_Villaret. If I may ask another question. The API call worked and the ODAG link was created, however the link doesn't appear in the selection app. Is there another step to do make it appear?
If I remember correctly, in order for it to also show in the UI, you would also need to perform some other actions with the Engine API. I would need to test before I can get back to you.
Would you mind opening this question as a new topic so that it's easier to find for other people that have the same question ?
Hi @hermandup_anz any place we can faind latest documentation on ODAG API?
Thanks in advance