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 .xml suffix or ?format=xml

HTTP + XML

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

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

<CreateTeam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GameCenter.Api.Models">
  <CreatorGuid>00000000-0000-0000-0000-000000000000</CreatorGuid>
  <DeviceId>String</DeviceId>
  <Gender>Male</Gender>
  <IsMyTeam>0</IsMyTeam>
  <Level>Freshman</Level>
  <Reason>String</Reason>
  <Sport>Football</Sport>
  <TeamAcronym>String</TeamAcronym>
  <TeamName>String</TeamName>
  <TeamSeasonId>0</TeamSeasonId>
  <TeamType>School</TeamType>
</CreateTeam>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CreateTeamWithSeasonResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GameCenter.Api.Models">
  <Team>
    <CreatedOn>0001-01-01T00:00:00</CreatedOn>
    <CreatorGuid>00000000-0000-0000-0000-000000000000</CreatorGuid>
    <DeletedOn>0001-01-01T00:00:00</DeletedOn>
    <Gender>Male</Gender>
    <IsMyTeam>0</IsMyTeam>
    <Level>Freshman</Level>
    <Logo>String</Logo>
    <SchoolId>0</SchoolId>
    <SchoolMascot>String</SchoolMascot>
    <SchoolName>String</SchoolName>
    <Seasons>
      <SeasonResponseModel>
        <CreatedOn>0001-01-01T00:00:00</CreatedOn>
        <CreatorGuid>00000000-0000-0000-0000-000000000000</CreatorGuid>
        <DeletedOn>0001-01-01T00:00:00</DeletedOn>
        <SeasonActiveEndDTTM>0001-01-01T00:00:00</SeasonActiveEndDTTM>
        <SeasonActiveStartDTTM>0001-01-01T00:00:00</SeasonActiveStartDTTM>
        <SeasonEndDTTM>0001-01-01T00:00:00</SeasonEndDTTM>
        <SeasonName>String</SeasonName>
        <SeasonStartDTTM>0001-01-01T00:00:00</SeasonStartDTTM>
        <SeasonYear>0</SeasonYear>
        <TeamSeasonId>0</TeamSeasonId>
        <UpdatedOn>0001-01-01T00:00:00</UpdatedOn>
      </SeasonResponseModel>
    </Seasons>
    <Sport>Football</Sport>
    <TeamAcronym>String</TeamAcronym>
    <TeamId>0</TeamId>
    <TeamName>String</TeamName>
    <TeamType>School</TeamType>
    <UpdatedOn>0001-01-01T00:00:00</UpdatedOn>
  </Team>
</CreateTeamWithSeasonResponse>