PUT v1/clients/{id}
Creates a new client or updates an existing client
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Unique Identifier of the client to update or create. |
globally unique identifier |
Required |
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": "c4bc772f-f62a-4ede-8450-046790a1819b",
"Name": "sample string 2",
"AwardsPointConversionRate": 3.0
}
text/html
Sample:
{"Id":"c4bc772f-f62a-4ede-8450-046790a1819b","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>c4bc772f-f62a-4ede-8450-046790a1819b</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 or updated.
ClientPostResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
Response Codes
- 200 OK: Client successfully saved.
- 400 BadRequest: Data validation failed, see the response body for more information.
- 401 Unauthorized:
- 500 InternalServerError:
Response Formats
application/json, text/json
Sample:
{
"Id": "df4e5d65-cd32-4704-b81c-f0f20a531c37"
}
text/html
Sample:
{"Id":"df4e5d65-cd32-4704-b81c-f0f20a531c37"}
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>df4e5d65-cd32-4704-b81c-f0f20a531c37</Id> </ClientPostResponse>