POST api/StudentScheduledDropInRequest/Post

Creates a student request. If there is an existing session with the same tutor, same course, same location, and that includes this session's interval, then a pooled session is created and 201-Created along with the session DTO is returned. Otherwise, notifies the tutor and returns 200-Ok along with the request DTO. If the call fails, it returns 400-BadRequest along with the reason of failure.

Request Information

URI Parameters

None.

Body Parameters

PostScheduledDropInRequestDto
NameDescriptionTypeAdditional information
TcScheduleId

integer

Required

CourseId

integer

Required

StartTime

integer

Required

TimeRequested

integer

Required

Range: inclusive between 900000 and 14400000

Request Formats

application/json, text/json

Sample:
{
  "TcScheduleId": 1,
  "CourseId": 2,
  "StartTime": 3,
  "TimeRequested": 4
}

application/xml, text/xml

Sample:
<PostScheduledDropInRequestDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StudyTree.Core.Dtos.ResourceNs.ScheduledDropInNs">
  <CourseId>2</CourseId>
  <StartTime>3</StartTime>
  <TcScheduleId>1</TcScheduleId>
  <TimeRequested>4</TimeRequested>
</PostScheduledDropInRequestDto>

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.