---
title: "Courses | Docs | eLearning by R&D Copilot"
description: "Find courses and learning paths, or import a package of readings, checklists and quizzes."
canonical: "https://elearning.rdcopilot.com/docs/api-reference/courses/"
language: en
updated: 2026-11-22
---

# Courses

Find courses and learning paths, or import a package of readings, checklists and quizzes.

## List courses and paths

GET `/elearning/v1/courses`

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `limit` | query | `integer` | Nooptional | Default `100` Range `1` – `500` |
| `cursor` | query | `string` | Nooptional |  |

### Responses

| Status | Meaning | Body |
| --- | --- | --- |
| `200` | Current records. | `object` |
| `400` | Request refused. Codes: invalid\_request. | `Error` |
| `401` | Request refused. Codes: unauthorized. | `Error` |
| `403` | Request refused. Codes: forbidden. | `Error` |
| `429` | Request refused. Codes: rate\_limited. | `Error` |
| `503` | Request refused. Codes: unavailable. | `Error` |

### Request

curl

```bash
curl "$RDC_BASE_URL/elearning/v1/courses" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/elearning/v1/courses`, {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
  },
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'GET',
    f'{os.environ["RDC_BASE_URL"]}/elearning/v1/courses',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
)
result = response.json()
```

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/elearning/v1/courses');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'GET',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('RDC_TOKEN'),
    ],
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl);
```

C#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/elearning/v1/courses");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

### Response `200`

JSON

```json
{
  "items": [
    {
      "id": "receiving-goods",
      "title": "Receiving goods",
      "kind": "course",
      "lessonIds": [
        "receiving-reading",
        "receiving-checklist",
        "receiving-quiz"
      ],
      "courseIds": [],
      "durationMinutes": 5,
      "validityDays": 365
    },
    {
      "id": "workplace-safety",
      "title": "Workplace safety",
      "kind": "course",
      "lessonIds": [
        "safety-reading",
        "safety-quiz"
      ],
      "courseIds": [],
      "durationMinutes": 4,
      "validityDays": 365
    },
    {
      "id": "new-hire-onboarding",
      "title": "New-hire onboarding",
      "kind": "path",
      "lessonIds": [],
      "courseIds": [
        "workplace-safety",
        "receiving-goods"
      ],
      "durationMinutes": 9
    },
    {
      "id": "receiving-review",
      "title": "Receiving review",
      "kind": "course",
      "lessonIds": [
        "delivery-note",
        "delivery-checklist",
        "delivery-quiz"
      ],
      "courseIds": [],
      "durationMinutes": 5,
      "validityDays": 365
    }
  ],
  "nextCursor": null
}
```

## Import a course package

POST `/elearning/v1/course-packages`

### Request body

| Field | Type | Required | Meaning |
| --- | --- | --- | --- |
| `operationId` | `string (uuid)` | Yesrequired | UUID you choose for the change. |
| `expectedRevision` | `integer` | Yesrequired | Revision you read, or zero for a new record or batch. |
| `id` | `string` | Yesrequired | Course or path identifier. |
| `title` | `string` | Yesrequired | Course title. |
| `validityDays` | `integer` | Nooptional | Certificate validity in calendar days. Leave it out for a course that issues no certificate. |
| `lessons` | `PackageLesson[]` | Yesrequired | Lessons in the order learners take them: readings, checklists and at most one quiz, which comes last. |
| `lessons[].id` | `string` | Yesrequired | Unique lesson key within the course. |
| `lessons[].kind` | `string` | Yesrequired | Reading, checklist or quiz. One of `reading`, `checklist`, `quiz` |
| `lessons[].title` | `string` | Yesrequired | Lesson title. |
| `lessons[].minutes` | `integer` | Yesrequired | Minutes the lesson takes. The course duration is the sum. |
| `lessons[].body` | `string` | Nooptional | Plain text of a reading; a blank line starts a new paragraph. |
| `lessons[].items` | `string[]` | Nooptional | Points of a checklist, in order. |
| `lessons[].maxAttempts` | `integer` | Nooptional | Submissions a learner may make on a quiz. |
| `lessons[].passingAnswers` | `integer` | Nooptional | Correct answers needed to pass a quiz. |
| `lessons[].questions` | `PackageQuestion[]` | Nooptional | Questions of a quiz, in order. |
| `lessons[].questions[].prompt` | `string` | Yesrequired | The question. |
| `lessons[].questions[].choices` | `string[]` | Yesrequired | Answers to choose from. |
| `lessons[].questions[].correct` | `integer` | Yesrequired | Zero-based index of the correct answer. |

### Responses

| Status | Meaning | Body |
| --- | --- | --- |
| `202` | Operation recorded. | `OperationResult` |
| `400` | Request refused. Codes: invalid\_request. | `Error` |
| `401` | Request refused. Codes: unauthorized. | `Error` |
| `403` | Request refused. Codes: forbidden. | `Error` |
| `409` | Request refused. Codes: operation\_reused, revision\_conflict. | `Error` |
| `429` | Request refused. Codes: rate\_limited. | `Error` |
| `503` | Request refused. Codes: unavailable. | `Error` |

### Request

curl

```bash
curl -X POST "$RDC_BASE_URL/elearning/v1/course-packages" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "4e08713a-ec34-4a5a-92d3-81fd42564001",
  "expectedRevision": 0,
  "id": "receiving-review",
  "title": "Receiving review",
  "validityDays": 365,
  "lessons": [
    {
      "id": "delivery-note",
      "kind": "reading",
      "minutes": 2,
      "title": "Check the note",
      "body": "Match the delivery note against the purchase order before accepting the delivery.\n\nKeep damaged goods in the receiving area and tell purchasing the same day."
    },
    {
      "id": "delivery-checklist",
      "kind": "checklist",
      "minutes": 1,
      "title": "Before you accept",
      "items": [
        "Match the note and the order.",
        "Count and inspect the cases.",
        "Record the discrepancy before put-away."
      ]
    },
    {
      "id": "delivery-quiz",
      "kind": "quiz",
      "minutes": 2,
      "title": "Delivery quiz",
      "maxAttempts": 3,
      "passingAnswers": 2,
      "questions": [
        {
          "prompt": "What do you match against the purchase order?",
          "choices": [
            "Delivery note",
            "Shelf label"
          ],
          "correct": 0
        },
        {
          "prompt": "Where do damaged cases stay?",
          "choices": [
            "On the picking shelf",
            "In the receiving area"
          ],
          "correct": 1
        },
        {
          "prompt": "When do you put away the accepted quantity?",
          "choices": [
            "After recording it",
            "Before counting it"
          ],
          "correct": 0
        }
      ]
    }
  ]
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/elearning/v1/course-packages`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "4e08713a-ec34-4a5a-92d3-81fd42564001",
    "expectedRevision": 0,
    "id": "receiving-review",
    "title": "Receiving review",
    "validityDays": 365,
    "lessons": [
      {
        "id": "delivery-note",
        "kind": "reading",
        "minutes": 2,
        "title": "Check the note",
        "body": "Match the delivery note against the purchase order before accepting the delivery.\n\nKeep damaged goods in the receiving area and tell purchasing the same day."
      },
      {
        "id": "delivery-checklist",
        "kind": "checklist",
        "minutes": 1,
        "title": "Before you accept",
        "items": [
          "Match the note and the order.",
          "Count and inspect the cases.",
          "Record the discrepancy before put-away."
        ]
      },
      {
        "id": "delivery-quiz",
        "kind": "quiz",
        "minutes": 2,
        "title": "Delivery quiz",
        "maxAttempts": 3,
        "passingAnswers": 2,
        "questions": [
          {
            "prompt": "What do you match against the purchase order?",
            "choices": [
              "Delivery note",
              "Shelf label"
            ],
            "correct": 0
          },
          {
            "prompt": "Where do damaged cases stay?",
            "choices": [
              "On the picking shelf",
              "In the receiving area"
            ],
            "correct": 1
          },
          {
            "prompt": "When do you put away the accepted quantity?",
            "choices": [
              "After recording it",
              "Before counting it"
            ],
            "correct": 0
          }
        ]
      }
    ]
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/elearning/v1/course-packages',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': '4e08713a-ec34-4a5a-92d3-81fd42564001',
        'expectedRevision': 0,
        'id': 'receiving-review',
        'title': 'Receiving review',
        'validityDays': 365,
        'lessons': [
            {
                'id': 'delivery-note',
                'kind': 'reading',
                'minutes': 2,
                'title': 'Check the note',
                'body': 'Match the delivery note against the purchase order before accepting the delivery.

Keep damaged goods in the receiving area and tell purchasing the same day.',
            },
            {
                'id': 'delivery-checklist',
                'kind': 'checklist',
                'minutes': 1,
                'title': 'Before you accept',
                'items': [
                    'Match the note and the order.',
                    'Count and inspect the cases.',
                    'Record the discrepancy before put-away.',
                ],
            },
            {
                'id': 'delivery-quiz',
                'kind': 'quiz',
                'minutes': 2,
                'title': 'Delivery quiz',
                'maxAttempts': 3,
                'passingAnswers': 2,
                'questions': [
                    {
                        'prompt': 'What do you match against the purchase order?',
                        'choices': [
                            'Delivery note',
                            'Shelf label',
                        ],
                        'correct': 0,
                    },
                    {
                        'prompt': 'Where do damaged cases stay?',
                        'choices': [
                            'On the picking shelf',
                            'In the receiving area',
                        ],
                        'correct': 1,
                    },
                    {
                        'prompt': 'When do you put away the accepted quantity?',
                        'choices': [
                            'After recording it',
                            'Before counting it',
                        ],
                        'correct': 0,
                    },
                ],
            },
        ],
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "operationId": "4e08713a-ec34-4a5a-92d3-81fd42564001",
  "expectedRevision": 0,
  "id": "receiving-review",
  "title": "Receiving review",
  "validityDays": 365,
  "lessons": [
    {
      "id": "delivery-note",
      "kind": "reading",
      "minutes": 2,
      "title": "Check the note",
      "body": "Match the delivery note against the purchase order before accepting the delivery.\n\nKeep damaged goods in the receiving area and tell purchasing the same day."
    },
    {
      "id": "delivery-checklist",
      "kind": "checklist",
      "minutes": 1,
      "title": "Before you accept",
      "items": [
        "Match the note and the order.",
        "Count and inspect the cases.",
        "Record the discrepancy before put-away."
      ]
    },
    {
      "id": "delivery-quiz",
      "kind": "quiz",
      "minutes": 2,
      "title": "Delivery quiz",
      "maxAttempts": 3,
      "passingAnswers": 2,
      "questions": [
        {
          "prompt": "What do you match against the purchase order?",
          "choices": [
            "Delivery note",
            "Shelf label"
          ],
          "correct": 0
        },
        {
          "prompt": "Where do damaged cases stay?",
          "choices": [
            "On the picking shelf",
            "In the receiving area"
          ],
          "correct": 1
        },
        {
          "prompt": "When do you put away the accepted quantity?",
          "choices": [
            "After recording it",
            "Before counting it"
          ],
          "correct": 0
        }
      ]
    }
  ]
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/elearning/v1/course-packages');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('RDC_TOKEN'),
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => $body,
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl);
```

C#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/elearning/v1/course-packages");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "4e08713a-ec34-4a5a-92d3-81fd42564001",
  "expectedRevision": 0,
  "id": "receiving-review",
  "title": "Receiving review",
  "validityDays": 365,
  "lessons": [
    {
      "id": "delivery-note",
      "kind": "reading",
      "minutes": 2,
      "title": "Check the note",
      "body": "Match the delivery note against the purchase order before accepting the delivery.\n\nKeep damaged goods in the receiving area and tell purchasing the same day."
    },
    {
      "id": "delivery-checklist",
      "kind": "checklist",
      "minutes": 1,
      "title": "Before you accept",
      "items": [
        "Match the note and the order.",
        "Count and inspect the cases.",
        "Record the discrepancy before put-away."
      ]
    },
    {
      "id": "delivery-quiz",
      "kind": "quiz",
      "minutes": 2,
      "title": "Delivery quiz",
      "maxAttempts": 3,
      "passingAnswers": 2,
      "questions": [
        {
          "prompt": "What do you match against the purchase order?",
          "choices": [
            "Delivery note",
            "Shelf label"
          ],
          "correct": 0
        },
        {
          "prompt": "Where do damaged cases stay?",
          "choices": [
            "On the picking shelf",
            "In the receiving area"
          ],
          "correct": 1
        },
        {
          "prompt": "When do you put away the accepted quantity?",
          "choices": [
            "After recording it",
            "Before counting it"
          ],
          "correct": 0
        }
      ]
    }
  ]
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

### Response `202`

JSON

```json
{
  "operationId": "4e08713a-ec34-4a5a-92d3-81fd42564001",
  "status": "accepted",
  "aggregateRevision": null
}
```
