PUT api/Team/Setup
Setup the team, set the team color and the student avatars
Request Information
URI Parameters
None.
Body Parameters
The input.
SetupTeamInputModel| Name | Description | Type | Additional information |
|---|---|---|---|
| TeamId |
Gets or sets the team identifier. |
integer |
Required |
| TeamColor |
Gets or sets the color of the team. |
integer |
Required |
| StudentAvatars |
Gets or sets the student avatars. |
Collection of StudentAvatar |
Required |
Request Formats
application/json, text/json
Sample:
{
"TeamId": 1,
"TeamColor": 2,
"StudentAvatars": [
{
"StudentId": 1,
"Avatar": 2
},
{
"StudentId": 1,
"Avatar": 2
}
]
}
application/xml, text/xml
Sample:
<SetupTeamInputModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LS_API.Models.TeamModels.InputModel">
<StudentAvatars>
<StudentAvatar>
<Avatar>2</Avatar>
<StudentId>1</StudentId>
</StudentAvatar>
<StudentAvatar>
<Avatar>2</Avatar>
<StudentId>1</StudentId>
</StudentAvatar>
</StudentAvatars>
<TeamColor>2</TeamColor>
<TeamId>1</TeamId>
</SetupTeamInputModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | 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. |