PUT api/Customer?id={id}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | integer |
Required |
Body Parameters
CustomerDTOName | Description | Type | Additional information |
---|---|---|---|
ID | integer |
None. |
|
RegionID | integer |
None. |
|
Name | string |
None. |
|
FirstName | string |
None. |
|
LastName | string |
None. |
|
ContactTel | string |
None. |
|
EmailAddress | string |
None. |
|
AddressLine1 | string |
None. |
|
AddressLine2 | string |
None. |
|
Suburb | string |
None. |
|
Province | string |
None. |
|
Username | string |
None. |
|
Password | string |
None. |
|
InActive | boolean |
None. |
|
IsDeleted | boolean |
None. |
|
RegionName | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "ID": 1, "RegionID": 2, "Name": "sample string 3", "FirstName": "sample string 4", "LastName": "sample string 5", "ContactTel": "sample string 6", "EmailAddress": "sample string 7", "AddressLine1": "sample string 8", "AddressLine2": "sample string 9", "Suburb": "sample string 10", "Province": "sample string 11", "Username": "sample string 12", "Password": "sample string 13", "InActive": true, "IsDeleted": true, "RegionName": "sample string 16" }
application/xml, text/xml
Sample:
<CustomerDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DataAccess.DTO"> <AddressLine1>sample string 8</AddressLine1> <AddressLine2>sample string 9</AddressLine2> <ContactTel>sample string 6</ContactTel> <EmailAddress>sample string 7</EmailAddress> <FirstName>sample string 4</FirstName> <ID>1</ID> <InActive>true</InActive> <IsDeleted>true</IsDeleted> <LastName>sample string 5</LastName> <Name>sample string 3</Name> <Password>sample string 13</Password> <Province>sample string 11</Province> <RegionID>2</RegionID> <RegionName>sample string 16</RegionName> <Suburb>sample string 10</Suburb> <Username>sample string 12</Username> </CustomerDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
booleanResponse Formats
application/json, text/json
Sample:
true
application/xml, text/xml
Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>