POST v1/clients
Creates a client
Request Information
URI Parameters
None.
Body Parameters
An object representing the client.
Client| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| AwardsPointConversionRate | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "3e3d5056-c64c-47ae-b6f9-0b439e0b6a1c",
"Name": "sample string 2",
"AwardsPointConversionRate": 3.0
}
text/html
Sample:
{"Id":"3e3d5056-c64c-47ae-b6f9-0b439e0b6a1c","Name":"sample string 2","AwardsPointConversionRate":3.0}
application/xml, text/xml
Sample:
<Client xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ITAGroup.Games.Api.Contracts.v1.Models"> <AwardsPointConversionRate>3</AwardsPointConversionRate> <Id>3e3d5056-c64c-47ae-b6f9-0b439e0b6a1c</Id> <Name>sample string 2</Name> </Client>
Response Information
Resource Description
A response containing the new Client's unique id, or validation errors if the client could not be created.
ClientPostResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
Response Codes
- 201 Created: Client 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": "add554c7-2188-40da-9ae4-824a40937517"
}
text/html
Sample:
{"Id":"add554c7-2188-40da-9ae4-824a40937517"}
application/xml, text/xml
Sample:
<ClientPostResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ITAGroup.Games.Api.Contracts.v1.Responses"> <Id>add554c7-2188-40da-9ae4-824a40937517</Id> </ClientPostResponse>