Question About 404 Error for rubric_associations Endpoint in Canvas API

Jump to solution
instruccional2
Community Member

Hi everyone,

I'm encountering an issue with the rubric_associations endpoint in the Canvas API. Every time I try to access it, I receive a 404 error.

Does anyone know what could be causing this? Could it be related to permissions,  the URL I'm using, or something else? I have an admin TOKEN, and have no problem with any other endpoint at the moment.

Any insights or suggestions would be greatly appreciated.

Thanks in advance for your help!

PUT /api/v1/courses/:course_id/rubric_associations/:id

Labels (1)
0 Likes
1 Solution
James
Community Champion

@instruccional2 

My guess is that you are passing the wrong ID and you do not have permission for the ID you're giving it (it could be at another institution if you're not self-hosting). It needs to be a rubric_association_id, not an assignment_id or a rubric_id.

Get the rubric_association_id via the Get a single rubric endpoint and tell it to ?include[]=associations or ?include[]=assignment_associations. That has an associations property and the id field there is the rubric_association_id.

View solution in original post