POST api/RcAdminSs/Post

Creates new study session(s) with the specified details. As Admin level call, this does not validate whether the courses are able to teach (resource availability) / tutor's time available (TC schedule) If latestEndTime is not null, a recurring session is created weekly until that time.

Request Information

URI Parameters

None.

Body Parameters

PostSsDto
NameDescriptionTypeAdditional information
RcId

integer

Required

ResourceId

integer

Required

CourseId

integer

Required

LocationId

integer

Required

StartTime

integer

Required

EndTime

integer

Required

LatestEndTime

integer

None.

TutorId

integer

Required

StudentIds

Collection of integer

Required

MaxAttendees

integer

None.

OverrideValidation

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "RcId": 1,
  "ResourceId": 2,
  "CourseId": 3,
  "LocationId": 4,
  "StartTime": 5,
  "EndTime": 6,
  "LatestEndTime": 1,
  "TutorId": 7,
  "StudentIds": [
    1,
    2
  ],
  "MaxAttendees": 1,
  "OverrideValidation": true
}

application/xml, text/xml

Sample:
<PostSsDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StudyTree.Common.Dtos.EventNs.StudySessionNs">
  <CourseId>3</CourseId>
  <EndTime>6</EndTime>
  <LatestEndTime>1</LatestEndTime>
  <LocationId>4</LocationId>
  <MaxAttendees>1</MaxAttendees>
  <OverrideValidation>true</OverrideValidation>
  <RcId>1</RcId>
  <ResourceId>2</ResourceId>
  <StartTime>5</StartTime>
  <StudentIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </StudentIds>
  <TutorId>7</TutorId>
</PostSsDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.