GameCenter Web Api

<back to all web services

CreateGame

Create or update a game; will update if the CreatorGuid matches an existing game, but will only allow changes to the following fields: StartDateTime/LocalStartDateTime, TimeZone, GameType, and Home/AwayTeamSeasonId (as long as they are the same as before but swapped with each other); if CreatorGuid is missing or new, a new game will be created

The following routes are available for this service:
POST/games/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/CreateGame HTTP/1.1 
Host: api.digitalscout.com 
Content-Type: text/csv
Content-Length: length

AwayTeamSeasonId,CreatorGuid,DeviceId,GameType,HomeTeamSeasonId,LocalStartDateTime,Sport,StartDateTime,TimeZone
0,00000000-0000-0000-0000-000000000000,String,Preseason,0,String,Football,String,String

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

AwayTeamSeasonId,CreatedOn,CreatorGuid,CurrentQuarter,DeletedOn,GameId,GameType,HomeTeamSeasonId,LocalStartDateTime,QuarterSecondsLeft,Sport,StartDateTime,Status,StatusText,TimeZone,UpdatedOn
0,"""0001-01-01 00:00:00 +00""",00000000-0000-0000-0000-000000000000,0,"""0001-01-01 00:00:00 +00""",0,Preseason,0,"""0001-01-01 00:00:00 +00""",0,Football,"""0001-01-01 00:00:00 +00""",Scheduled,String,String,"""0001-01-01 00:00:00 +00"""