Retrieve a course: Migration guide
This guide outlines the changes introduced in the Retrieve a course v2 endpoint (previously known as getCourse in v1).
Documentation links
Here are the links to the API reference for:
Endpoint mapping
Here's the direct correlation between the v1 and v2 endpoint URLs:
- API v1:
/api/v1/courses/:course_id - API v2:
/api/v2/courses/{courseId}
Input changes
This section details the specific alterations to the input requirements between API versions.
API v1 input example
curl --location -g 'https://{{host}}/api/v1/courses/58eb5c621a92bb4fb526b2b0?company={{company}}&apiKey={{apiKey}}'API v2 input example
curl --request GET \
--url https://app.360learning.com/api/v2/courses/courseId \
--header '360-api-version: v2.0' \
--header 'accept: application/json'Output changes
This section details the specific alterations to the successful output returned between API versions.
API v1 output example
{
"_id": "58eb5c621a92bb4fb526b2b0",
"author": "[email protected]",
"creationDate": "2021-05-19T14:43:23.000Z",
"description": "",
"modificationDate": "2021-05-20T08:08:23.195Z",
"name": "course name",
"status": "published",
"group": "58eb5c621a92bb4fb526b2b0",
"lang": "en",
"coAuthors": [
"[email protected]"
],
"courseDuration": 15,
"translationsLangs": [
{
"lang": "fr",
"published": true,
"translators": [
"[email protected]"
]
}
],
"groupName": "Onboarding"
}API v2 output example
{
"_id": "507f1f77bcf86cd799439011",
"authorId": "507f1f77bcf86cd799439011",
"coAuthorIds": [
"507f1f77bcf86cd799439011"
],
"createdAt": "2025-09-12T12:33:30.423Z",
"defaultLang": "bg",
"groupId": "507f1f77bcf86cd799439011",
"modifiedAt": "2025-09-12T12:33:30.423Z",
"name": "Employee Onboarding",
"sourceLang": "bg",
"status": "archived",
"translations": [
{
"lang": "fr",
"published": true,
"translatorIds": [
"507f1f77bcf86cd799439011"
],
"translatedFields": {
"name": "Accueil des employés",
"description": "Ce module vous apprend à intégrer un nouveau collaborateur !"
}
}
],
"type": "elearning standard",
"description": "This course will teach you how to onboard a new employee!",
"duration": 0,
"externalPlatform": "Udemy",
"currentVersionNumber": 0
}Main output differences
Change type | API v1 | API v2 |
|---|---|---|
Removed |
| |
Modified |
|
|
Modified |
| |
Modified |
| |
Modified |
| Now includes a new value: |
Added |
| |
Added |
| |
Added |
|
Updated 8 days ago
