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": "ba40c95b-486b-4b69-9964-65b22c27f98d",
"Name": "sample string 2",
"Description": "sample string 3",
"BundleName": "sample string 4",
"InUse": true
}
text/html
Sample:
{"Id":"ba40c95b-486b-4b69-9964-65b22c27f98d","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>ba40c95b-486b-4b69-9964-65b22c27f98d</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": "3409aeb3-62fa-4c78-8f90-c5d76097a82f"
}
text/html
Sample:
{"Id":"3409aeb3-62fa-4c78-8f90-c5d76097a82f"}
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>3409aeb3-62fa-4c78-8f90-c5d76097a82f</Id> </GameTypePostResponse>