POST v1/games/{id}/clone
Clones an existing Game
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Unique Identifier of the Game to clone. |
string |
Required |
Body Parameters
An object representing the new game's new properties.
CloneGame| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | string |
None. |
|
| Name | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "sample string 1",
"Name": "sample string 2"
}
text/html
Sample:
{"Id":"sample string 1","Name":"sample string 2"}
application/xml, text/xml
Sample:
<CloneGame xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ITAGroup.Games.Api.Contracts.v1.Models"> <Id>sample string 1</Id> <Name>sample string 2</Name> </CloneGame>
Response Information
Resource Description
A response containing the new Game's unique id, or validation errors if the Game could not be created.
GamePostResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | string |
None. |
Response Codes
- 201 Created: Game successfully created.
- 400 BadRequest: Data validation failed, see the response body for more information.
- 401 Unauthorized:
- 404 NotFound: Game to be cloned does not exist.
- 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>