I’m wanting to use the Docebo API to return all Courses
using either endpoints:
- /courses/v1/courses
- /learn/v1/courses
Both of these return Http Response code 200 but with 0 items
Below response is from endpoint: /courses/v1/courses
{
"data": {
"items": [],
"count": 0,
"has_more_data": false,
"cursor": null,
"current_page": 1,
"current_page_size": 100,
"total_page_count": 0,
"total_count": 0
},
"version": "1.0.0",
"_links": []
}I can successfully call endpoints:
- /learn/v1/courses/{{CourseId}}
- /learningplan/v1/learningplans
- /learn/v1/lp
- /learn/v1/lp/{{LearningPlanId}}
My current setup:
Authentication: Local service account (username & password)
Power User using a Profile to manage permissions
User Assigned Resources:
- All courses and learning plans
Profile Permissions:
Courses - View
Learning Plans - View
Users - Create, Can active users, Edit, View
I’ve tried making the service account a Super Admin but it still does not return courses
Are there any other setup I need for courses to be listed via the API?
Edit: I can successfully list courses when using own account (via OAUTH) on Docebo API Explorer, but I need to use a local account for my app.
