POST v2/networks/{networkid}/teams/{id}/timeslots
[Team Admin Permission Required] Mark time slots available/unavailable
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
networkid | network id |
Define this parameter in the request URI. |
id | team id |
Define this parameter in the request URI. |
timeSlots | time slots to be changed |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
[ { "avaliable": true, "time_slot": "sample string 2", "team_unavailable_time_ids": "sample string 3", "game_type": 0 }, { "avaliable": true, "time_slot": "sample string 2", "team_unavailable_time_ids": "sample string 3", "game_type": 0 }, { "avaliable": true, "time_slot": "sample string 2", "team_unavailable_time_ids": "sample string 3", "game_type": 0 } ]
application/xml, text/xml
Sample:
<ArrayOfTimeSlotInDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Input.V2"> <TimeSlotInDto> <avaliable>true</avaliable> <game_type>RegularGame</game_type> <team_unavailable_time_ids>sample string 3</team_unavailable_time_ids> <time_slot>sample string 2</time_slot> </TimeSlotInDto> <TimeSlotInDto> <avaliable>true</avaliable> <game_type>RegularGame</game_type> <team_unavailable_time_ids>sample string 3</team_unavailable_time_ids> <time_slot>sample string 2</time_slot> </TimeSlotInDto> <TimeSlotInDto> <avaliable>true</avaliable> <game_type>RegularGame</game_type> <team_unavailable_time_ids>sample string 3</team_unavailable_time_ids> <time_slot>sample string 2</time_slot> </TimeSlotInDto> </ArrayOfTimeSlotInDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].avaliable" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].time_slot" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].team_unavailable_time_ids" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].game_type" RegularGame --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].avaliable" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].time_slot" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].team_unavailable_time_ids" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].game_type" RegularGame --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[2].avaliable" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[2].time_slot" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[2].team_unavailable_time_ids" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[2].game_type" RegularGame --MultipartDataMediaFormatterBoundary1q2w3e--