OPTIONS api/EditCustomer/editcustomer

Request Information

URI Parameters

None.

Body Parameters

Customer
NameDescriptionTypeAdditional information
customer_id

integer

None.

customer_name

string

None.

contact_person

string

None.

contact_number

string

None.

email_id

string

None.

address1

string

None.

address2

string

None.

state

string

None.

city

string

None.

pincode

string

None.

password

string

None.

Request Formats

application/json, text/json

Sample:
{
  "customer_id": 1,
  "customer_name": "sample string 2",
  "contact_person": "sample string 3",
  "contact_number": "sample string 4",
  "email_id": "sample string 5",
  "address1": "sample string 6",
  "address2": "sample string 7",
  "state": "sample string 8",
  "city": "sample string 9",
  "pincode": "sample string 10",
  "password": "sample string 11"
}

application/xml, text/xml

Sample:
<Customer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TrustLine.Models">
  <address1>sample string 6</address1>
  <address2>sample string 7</address2>
  <city>sample string 9</city>
  <contact_number>sample string 4</contact_number>
  <contact_person>sample string 3</contact_person>
  <customer_id>1</customer_id>
  <customer_name>sample string 2</customer_name>
  <email_id>sample string 5</email_id>
  <password>sample string 11</password>
  <pincode>sample string 10</pincode>
  <state>sample string 8</state>
</Customer>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Customer'.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>