GameCenter Web Api

<back to all web services

CreatePlayer

Create a player

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

FirstName,LastName,JerseyNumber,AlternateJerseyNumber,TeamSeasonId,CurrentGameId,CreatorGuid,DeviceId
String,String,String,String,0,0,00000000-0000-0000-0000-000000000000,String

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

Player,ResponseStatus
"{PlayerId:0,TeamSeasonId:0,FirstName:String,LastName:String,JerseyNumber:String,AlternateJerseyNumber:String,DeletedOn:""0001-01-01 00:00:00 +00"",DisplayName:Team}","{ErrorCode:String,Message:String,StackTrace:String,Errors:[{ErrorCode:String,FieldName:String,Message:String}]}"