---
title: "Assignments | Docs | eLearning by R&D Copilot"
description: "Assign training to a group, find learner records and send reminders."
canonical: "https://elearning.rdcopilot.com/docs/api-reference/assignments/"
language: en
updated: 2026-11-22
---

# Assignments

Assign training to a group, find learner records and send reminders.

## List assignments

GET `/elearning/v1/assignments`

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `userId` | query | `string` | Nooptional |  |
| `courseId` | query | `string` | Nooptional |  |
| `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/assignments" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/elearning/v1/assignments`, {
  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/assignments',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
)
result = response.json()
```

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/elearning/v1/assignments');
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/assignments");
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": "ASG-2025-0214",
      "userId": "radu-ionescu",
      "courseId": "receiving-goods",
      "assignedOn": "2025-11-12",
      "dueOn": "2025-11-26",
      "mandatory": true,
      "status": "expired",
      "revision": 5,
      "completedOn": "2025-11-20"
    }
  ],
  "nextCursor": null
}
```

## Assign a course to a group

POST `/elearning/v1/assignments`

### 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. |
| `groupId` | `string` | Yesrequired | Group identifier. |
| `courseId` | `string` | Yesrequired | Course or path identifier. |
| `dueOn` | `string (date)` | Yesrequired | Last day to finish on time. |
| `mandatory` | `boolean` | Yesrequired | Whether the assignment is mandatory. |

### 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` |
| `404` | Request refused. Codes: group\_not\_found, course\_not\_found. | `Error` |
| `409` | Request refused. Codes: operation\_reused, revision\_conflict. | `Error` |
| `422` | Request refused. Codes: already\_assigned, assignment\_id\_conflict, invalid\_due\_date. | `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/assignments" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "4e08713a-ec34-4a5a-92d3-81fd425640ad",
  "expectedRevision": 0,
  "groupId": "logistics",
  "courseId": "receiving-goods",
  "dueOn": "2026-12-05",
  "mandatory": true
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/elearning/v1/assignments`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "4e08713a-ec34-4a5a-92d3-81fd425640ad",
    "expectedRevision": 0,
    "groupId": "logistics",
    "courseId": "receiving-goods",
    "dueOn": "2026-12-05",
    "mandatory": true
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/elearning/v1/assignments',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': '4e08713a-ec34-4a5a-92d3-81fd425640ad',
        'expectedRevision': 0,
        'groupId': 'logistics',
        'courseId': 'receiving-goods',
        'dueOn': '2026-12-05',
        'mandatory': True,
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "operationId": "4e08713a-ec34-4a5a-92d3-81fd425640ad",
  "expectedRevision": 0,
  "groupId": "logistics",
  "courseId": "receiving-goods",
  "dueOn": "2026-12-05",
  "mandatory": true
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/elearning/v1/assignments');
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/assignments");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "4e08713a-ec34-4a5a-92d3-81fd425640ad",
  "expectedRevision": 0,
  "groupId": "logistics",
  "courseId": "receiving-goods",
  "dueOn": "2026-12-05",
  "mandatory": true
}
""", 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-81fd425640ad",
  "status": "accepted",
  "aggregateRevision": null
}
```

## Send a reminder

POST `/elearning/v1/assignments/{assignmentId}/reminders`

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `assignmentId` | path | `string` | Yesrequired |  |

### 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. |

### 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` |
| `404` | Request refused. Codes: assignment\_not\_found. | `Error` |
| `409` | Request refused. Codes: operation\_reused, revision\_conflict. | `Error` |
| `422` | Request refused. Codes: already\_completed, reminder\_already\_recorded. | `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/assignments/ASG-2026-0312/reminders" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "4e08713a-ec34-4a5a-92d3-81fd42564007",
  "expectedRevision": 1
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/elearning/v1/assignments/ASG-2026-0312/reminders`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "4e08713a-ec34-4a5a-92d3-81fd42564007",
    "expectedRevision": 1
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/elearning/v1/assignments/ASG-2026-0312/reminders',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': '4e08713a-ec34-4a5a-92d3-81fd42564007',
        'expectedRevision': 1,
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "operationId": "4e08713a-ec34-4a5a-92d3-81fd42564007",
  "expectedRevision": 1
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/elearning/v1/assignments/ASG-2026-0312/reminders');
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/assignments/ASG-2026-0312/reminders");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "4e08713a-ec34-4a5a-92d3-81fd42564007",
  "expectedRevision": 1
}
""", 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-81fd42564007",
  "status": "accepted",
  "aggregateRevision": null
}
```
