POST api/TutorTcStay/Post

Marks the tutor as available in the specified tutoring center. Also a tcStay timer is lauched, that will notify the tutor when the stay ends.

Request Information

URI Parameters

None.

Body Parameters

PostTcStayDto
NameDescriptionTypeAdditional information
TcId

integer

Required

EndTime

integer

Required

IsStationary

boolean

None.

LocationDetails

string

None.

Request Formats

application/json, text/json

Sample:
{
  "TcId": 1,
  "EndTime": 2,
  "IsStationary": true,
  "LocationDetails": "sample string 4"
}

application/xml, text/xml

Sample:
<PostTcStayDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StudyTree.Core.Dtos.TutoringCenterNs">
  <EndTime>2</EndTime>
  <IsStationary>true</IsStationary>
  <LocationDetails>sample string 4</LocationDetails>
  <TcId>1</TcId>
</PostTcStayDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

200 OK if request succeeds, 400 Bad Request otherwise.

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.