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

# Enroll Users to Course

`POST /v2/enrollments`

## Request

- Base URL: `https://customer.my.onetrust.com/api/awareness-training`
- URL: `https://customer.my.onetrust.com/api/awareness-training/v2/enrollments`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://{$$.env.host}/api/access/v1/oauth/token`

> **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.dev/onetrust/apis/tech-risk-compliance-training.md) - [All operations](https://skmtc.dev/onetrust/apis/tech-risk-compliance-training/llms.txt) - [OpenAPI document](https://skmtc.dev/onetrust/apis/tech-risk-compliance-training/revisions/7d5b792255bd?raw)
