Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
hermandup_anz
Contributor III
Contributor III

ODAG API "Method not allowed"

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."

1 Solution

Accepted Solutions
Damien_Villaret
Support
Support

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

 

If the issue is solved please mark the answer with Accept as Solution.

View solution in original post

7 Replies
Damien_Villaret
Support
Support

Hello @hermandup_anz 

Is this the documentation you have followed ?

https://community.qlik.com/t5/Knowledge-Base/Qlik-Sense-ODAG-API-How-to-create-ODAG-links-PowerShell...

4242 is the repository API port, you're trying to call the ODAG API, that is a different service.

If the issue is solved please mark the answer with Accept as Solution.
hermandup_anz
Contributor III
Contributor III
Author

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?

Damien_Villaret
Support
Support

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

 

If the issue is solved please mark the answer with Accept as Solution.
hermandup_anz
Contributor III
Contributor III
Author

That worked. Thanks so much! 

hermandup_anz
Contributor III
Contributor III
Author

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?

Damien_Villaret
Support
Support

Hi @hermandup_anz 

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 ?

If the issue is solved please mark the answer with Accept as Solution.
jp_golay
Partner - Creator II
Partner - Creator II

Hi @hermandup_anz any place we can faind latest documentation on ODAG API?
Thanks in advance

ebiexperts CTO
With WIP, Control everything!
Qlik Sense, QlikView and NPrinting Source control, Versioning and Deployment, Agile Lifecycle Management