API for getting custom data for a given user in a course
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Today there is an API to store custom data for a given user:
PUT /v1/courses/{course_id}/custom_gradebook_columns/{id}/data/{user_id}
However, there is a need for the equivalent GET/v1/courses/{course_id}/custom_gradebook_columns/{id}/data/{user_id}
Background at https://community.canvaslms.com/ideas/10952-api-needed-for-getting-custom-data-for-a-given-user-in-a...
Is it possible to have such an API or is there another way to get the data (without having to get the entire column)?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you tried specifying the per_page query parameter? It sounds like you're using the default of 10. Normally you can go up to 100.
I'm note sure if this the same thing, but it reminds me of a problem a couple of years ago where the correct number of results were being returned but some were duplicated while others were omitted. Changing the per_page made a difference. I think the underlying issue was no sort order being specified and the PostgreSQL order is not deterministic when that doesn't happen.