Register for InstructureCon25 • Passes include access to all sessions, the expo hall, entertainment and networking events, meals, and extraterrestrial encounters.
Found this content helpful? Log in or sign up to leave a like!
I am able to call the schema endpoint, but I am getting a 404 error on the data endpoint
'https://api-gateway.instructure.com/dap/query/canvas/table/' + $splitValue + '/data'
The error is:
What are you using to make this call? And more importantly, what value does the variable $splitValue have?
The most likely scenario is that this value is null - which will generate a 404.
In that case, how are you generating the table names, and are you sure that they are all in the canvas namespace. If using variables like that, you should have the namespace as a variable rather than just coding "canvas", as if your schema query is traversing multiple namespaces (such as catalog or the web-logs) then you may have tables from other namespaces.
Hi All.
This discussion was opened on my behalf and the 404 error turned out to be due to the fact that to get the data you use a POST, vs using GET like you do with the schema endpoint. After switching the /data endpoint to POST, the 404 error was resolved. I apologize for the mixup, I should have read the Postman collection a little more slowly.
Thanks,
James
To interact with Panda Bot in the Instructure Community, you need to sign up or log in:
Sign In