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": "b6ec0f38-9949-4638-8308-488d3873976f",
"Name": "sample string 2",
"Description": "sample string 3",
"BundleName": "sample string 4",
"InUse": true
}
text/html
Sample:
{"Id":"b6ec0f38-9949-4638-8308-488d3873976f","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>b6ec0f38-9949-4638-8308-488d3873976f</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": "f29aee23-3163-42a5-b807-a06232a41e1c"
}
text/html
Sample:
{"Id":"f29aee23-3163-42a5-b807-a06232a41e1c"}
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>f29aee23-3163-42a5-b807-a06232a41e1c</Id> </GameTypePostResponse>