PUT api/Customer
Update a customer entry in Exsalerate, or if it doesn't exist create customer. This is an all or nothing update, meaning you can't do partial updates (patch). If you do not provide a property it will be set to empty. Required: CustomerName, AssignedToEmail.
Request Information
URI Parameters
None.
Body Parameters
The Customer Model containing properties for updating or creating a Customer.
CustomerModelName | Description | Type | Additional information |
---|---|---|---|
SiteOwnerId | integer |
None. |
|
YourID | integer |
None. |
|
AssignedToEmail | string |
Required Max length: 150 |
|
CustomerName | string |
Required Max length: 255 |
|
CompanyPhone | string |
Max length: 20 |
|
CompanyMobile | string |
Max length: 20 |
|
CompanyEmail | string |
Max length: 150 |
|
LeadStatus | string |
Max length: 150 |
|
RefCode | string |
Max length: 200 |
|
Region | string |
Max length: 150 |
|
Rank | string |
Max length: 150 |
|
IndustryType | string |
Max length: 150 |
|
Notes | string |
Max length: 4000 |
|
CustomerId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "SiteOwnerId": 1, "YourID": 1, "AssignedToEmail": "sample string 1", "CustomerName": "sample string 2", "CompanyPhone": "sample string 3", "CompanyMobile": "sample string 4", "CompanyEmail": "sample string 5", "LeadStatus": "sample string 6", "RefCode": "sample string 7", "Region": "sample string 8", "Rank": "sample string 9", "IndustryType": "sample string 10", "Notes": "sample string 11", "CustomerId": 12 }
application/xml, text/xml
Sample:
<CustomerModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExsalerateWebAPI.Models"> <AssignedToEmail>sample string 1</AssignedToEmail> <CompanyEmail>sample string 5</CompanyEmail> <CompanyMobile>sample string 4</CompanyMobile> <CompanyPhone>sample string 3</CompanyPhone> <CustomerId>12</CustomerId> <CustomerName>sample string 2</CustomerName> <IndustryType>sample string 10</IndustryType> <LeadStatus>sample string 6</LeadStatus> <Notes>sample string 11</Notes> <Rank>sample string 9</Rank> <RefCode>sample string 7</RefCode> <Region>sample string 8</Region> <SiteOwnerId>1</SiteOwnerId> <YourID>1</YourID> </CustomerModel>
application/x-www-form-urlencoded
Sample:
SiteOwnerId=1&CompanyName=MyNewCompany&AssignedToEmail=me@my.com&LeadStatus=Working
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |