PUT api/Customers/{id}
Updates the values for the given customer.
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| id | The id of the customer to update. |
Define this parameter in the request URI. |
| customer | The customer information used to update the entity. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{
"CustomerId": 1,
"Name": "sample string 2",
"ApiKey": "sample string 3",
"Role": "sample string 4"
}
text/javascript
Sample:
{"CustomerId":1,"Name":"sample string 2","ApiKey":"sample string 3","Role":"sample string 4"}
text/xml
Sample:
<Customer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LeaseTeam.AddressApi.Domain.Entities"> <ApiKey>sample string 3</ApiKey> <CustomerId>1</CustomerId> <Name>sample string 2</Name> <Role>sample string 4</Role> </Customer>
application/x-www-form-urlencoded
Sample:
Response Information
Response body formats
application/json, text/json
Sample:
{
"CustomerId": 1,
"Name": "sample string 2",
"ApiKey": "sample string 3",
"Role": "sample string 4"
}
text/javascript
Sample:
{"CustomerId":1,"Name":"sample string 2","ApiKey":"sample string 3","Role":"sample string 4"}
text/xml
Sample:
<Customer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LeaseTeam.AddressApi.Domain.Entities"> <ApiKey>sample string 3</ApiKey> <CustomerId>1</CustomerId> <Name>sample string 2</Name> <Role>sample string 4</Role> </Customer>