GameCenter Web Api

<back to all web services

CreatePartnerGame

Create a game. HomeSchoolId must match one of the SchoolIds in the Participants array. Participant enums: Level: Freshman, JV, Varsity; Gender: Male, Female, Coed. StartTime must be in UTC. Sport must be one of: Football, Basketball, Volleyball. GameType is optional and defaults to RegularSeason; if included, must be one of: Scrimmage, RegularSeason, Postseason, Tournament

The following routes are available for this service:
POST/partner/games

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /json/reply/CreatePartnerGame HTTP/1.1 
Host: api.digitalscout.com 
Content-Type: application/json
Content-Length: length

{"GameType":"Preseason","HomeSchoolId":"String","Participants":[{"Gender":"Male","Level":"Freshman","SchoolId":"String"}],"Sport":"Football"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ClockStatus":"GameNotStarted","CurrentPeriod":0,"GameStatus":"Scheduled","GameType":"Preseason","HomeSchoolId":"String","HtmlUrl":"String","Id":"String","Participants":[{"Gender":"Male","Level":"Freshman","SchoolId":"String"}],"PeriodSecondsLeft":0,"Scores":[{"IsFinal":false,"Period":0,"SchoolId":"String","Score":0}],"Sport":"Football"}