---
title: "Enroll Users to Course"
method: POST
path: "/v2/enrollments"
tags: ["Training"]
deprecated: true
---

# Enroll Users to Course

`POST /v2/enrollments`

> **Deprecated.**

> ❗️ End of Support Notification
> 
> As of December 5, 2025, this API is now deprecated. For more information, see [OneTrust API Sunsetting & Deprecation Guidelines](https://developer.onetrust.com/onetrust/reference/onetrust-api-sunsetting-deprecation-guidelines).


Use this API to enroll users into a specific course. 

> 🗒 Things to Know
>
> - Any number of users can be enrolled into the specified course per each API call.

## Request body

- EnrollmentRequest
  - `courseId` string, uuid, required — ID assigned to each course. The value is obtained from [Get List of Courses](/onetrust/reference/listofcoursesusingget) API.
  - `courseName` string, required — Name of the course.
  - `courseNameKey` string, required — NameKey assigned to each course.
  - `deadline` string, date-time, required — The date and time at which the course should be completed. The format is YYYY-MM-DDTHH:MM:SS.FFFZ
  - `reminders` EnrollmentReminder — The reminder for course deadline.
    - `numberOfDays` integer — The number of days as a reminder for course deadline.
    - `type` 'BEFORE' | 'AFTER' — The reminder type for course deadline.
  - `defaultLanguageId` string, uuid, required — Valid unique id assigned to each language. The value is obtained from [Get List of Courses](/onetrust/reference/listofcoursesusingget) API.
  - `defaultLanguageKey` string, required — Valid unique nameKey assigned to each language.
  - `defaultLanguageName` string, required — Valid unique name assigned to each language.
  - `courseLanguageVersion` integer, required — Version of the course for particular language.
  - `comments` string — Comments added if any while enrolling the users to the course.
  - `users` UserDTO[], required — Valid unique id assigned to each user.
    - `id` string, uuid — Valid unique id assigned to each user.

## Response `202`

Enroll users request has been accepted.

- string, uuid

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/onetrust/apis/platform-access-management.md) · [All operations](https://skmtc.net/onetrust/apis/platform-access-management/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/onetrust/platform-access-management/versions/21de3aa0b170/schema)
