PUT v1/gameTypes/{id}

Creates a new game type or updates an existing game type

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Unique Identifier of the game type to update or create.

globally unique identifier

Required

Body Parameters

An object representing the game type.

GameType
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Name

string

None.

Description

string

None.

BundleName

string

None.

InUse

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "e2a4690f-894a-45bb-83d8-41a7c0a690b9",
  "Name": "sample string 2",
  "Description": "sample string 3",
  "BundleName": "sample string 4",
  "InUse": true
}

text/html

Sample:
{"Id":"e2a4690f-894a-45bb-83d8-41a7c0a690b9","Name":"sample string 2","Description":"sample string 3","BundleName":"sample string 4","InUse":true}

application/xml, text/xml

Sample:
<GameType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ITAGroup.Games.Api.Contracts.v1.Models">
  <BundleName>sample string 4</BundleName>
  <Description>sample string 3</Description>
  <Id>e2a4690f-894a-45bb-83d8-41a7c0a690b9</Id>
  <InUse>true</InUse>
  <Name>sample string 2</Name>
</GameType>

Response Information

Resource Description

A response containing the new Game Type's unique id, or validation errors if the game type could not be created or updated.

GamePostResponse
NameDescriptionTypeAdditional information
Id

string

None.

Response Codes

  • 200 OK: Game Type successfully saved.
  • 400 BadRequest: Data validation failed, see the response body for more information.
  • 401 Unauthorized:
  • 500 InternalServerError:

Response Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1"
}

text/html

Sample:
{"Id":"sample string 1"}

application/xml, text/xml

Sample:
<GamePostResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ITAGroup.Games.Api.Contracts.v1.Responses">
  <Id>sample string 1</Id>
</GamePostResponse>