Best Answer

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

  • 5 April 2022
  • 2 replies
  • 157 views

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.

icon

Best answer by Bfarkas 5 April 2022, 15:41

View original

2 replies

Userlevel 7
Badge +3

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.

Userlevel 7
Badge +3

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