Skip to main content
Best Answer

Does it possible to get specific fields from an endpoint of the Docebo API


I want to get only the fields “id” and “last_update” from this endpoint: /course/v1/courses (full link: https://<our_domain>.docebosaas.com/api-browser/#!/course/Courses/Courses_course_v1_courses),  and specific fields from this endpoint: /course/v1/courses/{id} I searched in the documentation of these endpoints but didn’t find how to do it.

Best answer by Bfarkas

That URL didn’t bring me to a specific entry in the api browser, I see Batch Course Delete and Batch Course Update both have similar URL logic, but I imagine you are doing a GET not an Update or Delete, Which one of the entries were you trying for? I don’t see the /course/v1/courses/{id} directly unless I am missing something.

More generally, if the data is returnable, you need to filter somehow for the specific fields you want, not a way to have the endpoint only return a subset of the requests answers fields.

View original
Did this post help you find an answer to your question?

2 replies

Bfarkas
Hero III
Forum|alt.badge.img+5
  • Hero III
  • 3582 replies
  • Answer
  • April 5, 2022

That URL didn’t bring me to a specific entry in the api browser, I see Batch Course Delete and Batch Course Update both have similar URL logic, but I imagine you are doing a GET not an Update or Delete, Which one of the entries were you trying for? I don’t see the /course/v1/courses/{id} directly unless I am missing something.

More generally, if the data is returnable, you need to filter somehow for the specific fields you want, not a way to have the endpoint only return a subset of the requests answers fields.


Bfarkas
Hero III
Forum|alt.badge.img+5
  • Hero III
  • 3582 replies
  • April 5, 2022

Can you use the look at all courses in the platform, /course/v1/courses

And then refine the id you are looking for with the extra filters, and then in the returned result is both last updated and the ID of the course as well as other info.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings