PUT api/StudentGsInvitationResponse/Put
Saves the response to a GsInvitation. The valid responses are "Accept", "Decline", or "Ask me later". If the response is "Accept", self-assesment scores for all topics in the assignemnt should be provided.
Request Information
URI Parameters
None.
Body Parameters
PutGsInvitationResponseDtoName | Description | Type | Additional information |
---|---|---|---|
GsCreatorId | integer |
Required |
|
Response | string |
Required |
|
TopicScores | Collection of TopicScoreDto |
None. |
Request Formats
application/json, text/json
Sample:
{ "GsCreatorId": 1, "Response": "sample string 2", "TopicScores": [ { "TopicId": 1, "Score": 2 }, { "TopicId": 1, "Score": 2 } ] }
application/xml, text/xml
Sample:
<PutGsInvitationResponseDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StudyTree.Core.Dtos.StudentNs"> <GsCreatorId>1</GsCreatorId> <Response>sample string 2</Response> <TopicScores xmlns:d2p1="http://schemas.datacontract.org/2004/07/StudyTree.Common.Dtos.CourseNs"> <d2p1:TopicScoreDto> <d2p1:Score>2</d2p1:Score> <d2p1:TopicId>1</d2p1:TopicId> </d2p1:TopicScoreDto> <d2p1:TopicScoreDto> <d2p1:Score>2</d2p1:Score> <d2p1:TopicId>1</d2p1:TopicId> </d2p1:TopicScoreDto> </TopicScores> </PutGsInvitationResponseDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |