POST v1/gameTypes
Creates a Game Type
Request Information
URI Parameters
None.
Body Parameters
An object representing the Game Type.
GameType| Name | Description | Type | Additional 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": "e4be92c1-1d5b-4459-8cec-5f22c96556d7",
"Name": "sample string 2",
"Description": "sample string 3",
"BundleName": "sample string 4",
"InUse": true
}
text/html
Sample:
{"Id":"e4be92c1-1d5b-4459-8cec-5f22c96556d7","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>e4be92c1-1d5b-4459-8cec-5f22c96556d7</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.
GameTypePostResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
Response Codes
- 201 Created: Game Type successfully created.
- 400 BadRequest: Data validation failed, see the response body for more information.
- 401 Unauthorized:
- 500 InternalServerError:
Response Formats
application/json, text/json
Sample:
{
"Id": "024c15bd-bded-4a1f-b7b2-0376e7444f7d"
}
text/html
Sample:
{"Id":"024c15bd-bded-4a1f-b7b2-0376e7444f7d"}
application/xml, text/xml
Sample:
<GameTypePostResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ITAGroup.Games.Api.Contracts.v1.Responses"> <Id>024c15bd-bded-4a1f-b7b2-0376e7444f7d</Id> </GameTypePostResponse>