# Users - Temporary Enrollments

{% hint style="warning" %}
**Welcome to Our New API Docs!** This is the new home for all things API (previously at [Canvas LMS REST API Documentation](https://api.instructure.com)).
{% endhint %}

## Users - Temporary Enrollments

### What it Does

#### Manage Temporary Enrollments

Temporarily enroll a user into a course. This temporary enrollment is paired up with another enrollment within the course.

The temporarily enrolled user can only view and participate in a course between the start and end dates that were chosen when making the temporary enrollment.

#### Temporary Enrollments - add

Allows users to add a temporary enrollment with a start date, end date, and role

#### Temporary Enrollments - edit

Allows users to edit an existing temporary enrollment

#### Temporary Enrollments - delete

Allows users to delete a temporary enrollment

***

This documentation is generated directly from the Canvas LMS source code, available [on Github](https://github.com/instructure/canvas-lms).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developerdocs.instructure.com/services/canvas/permissions/details/file.permissions_manage_temporary_enrollments.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
