GameCenter Web Api

<back to all web services

CreateTeam

Create or update a team. API versions explicitly requested that are less than 1.2 will return a de-normalized Season, instead of a Team with Seasons.

The following routes are available for this service:
POST/teams/new

To override the Content-type in your clients HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /csv/reply/CreateTeam HTTP/1.1 
Host: api.digitalscout.com 
Content-Type: text/csv
Content-Length: length

CreatorGuid,DeviceId,Gender,IsMyTeam,Level,Reason,Sport,TeamAcronym,TeamName,TeamSeasonId,TeamType
00000000-0000-0000-0000-000000000000,String,Male,0,Freshman,String,Football,String,String,0,School

HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

CreatedOn,CreatorGuid,DeletedOn,Gender,IsMyTeam,Level,Logo,SchoolId,SchoolMascot,SchoolName,Seasons,Sport,TeamAcronym,TeamId,TeamName,TeamType,UpdatedOn
"""0001-01-01 00:00:00 +00""",00000000-0000-0000-0000-000000000000,"""0001-01-01 00:00:00 +00""",Male,0,Freshman,String,0,String,String,"[{DeletedOn:""0001-01-01 00:00:00 +00"",SeasonActiveEndDTTM:""0001-01-01 00:00:00 +00"",SeasonActiveStartDTTM:""0001-01-01 00:00:00 +00"",SeasonEndDTTM:""0001-01-01 00:00:00 +00"",SeasonName:String,SeasonStartDTTM:""0001-01-01 00:00:00 +00"",SeasonYear:0,TeamSeasonId:0}]",Football,String,0,String,School,"""0001-01-01 00:00:00 +00"""