POST restapi/personal/courses/{courseId}/participants/temporaryaccess/v1
Give persons temporary access to a course.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
courseId |
The course identifier. |
integer |
Required |
Body Parameters
Object with personId and profileId
Itslearning.RestApi.Entities.CourseParticipants.CourseParticipantsTemporaryAccessName | Description | Type | Additional information |
---|---|---|---|
PersonId |
The ids of the participants |
integer |
None. |
TemporaryAccess |
If the person has temporary access |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "PersonId": 1, "TemporaryAccess": true }
application/xml, text/xml
Sample:
<CourseParticipantsTemporaryAccess xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <PersonId>1</PersonId> <TemporaryAccess>true</TemporaryAccess> </CourseParticipantsTemporaryAccess>
application/x-www-form-urlencoded
Sample:
No sample available
Response Information
Resource Description
None.