POST api/Configuration/Suppliers/{code}/Contacts
Create a new Contact
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
code |
The Supplier code |
string |
Required |
Body Parameters
ContactEditName | Description | Type | Additional information |
---|---|---|---|
Name |
|
string |
Required Max length: 50 |
Function |
|
string |
Max length: 50 |
Phone |
|
string |
Max length: 17 |
Mobile |
|
string |
Max length: 17 |
|
string |
Max length: 100 |
Request Formats
Sample:
{ "Name": "sample string 1", "Function": "sample string 2", "Phone": "sample string 3", "Mobile": "sample string 4", "Email": "sample string 5" }
Sample:
<ContactEdit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models.Parametrizacao"> <Email>sample string 5</Email> <Function>sample string 2</Function> <Mobile>sample string 4</Mobile> <Name>sample string 1</Name> <Phone>sample string 3</Phone> </ContactEdit>
Sample:
Sample not available.
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Name" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Function" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Phone" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Mobile" sample string 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Email" sample string 5 --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
integerResponse Formats
Sample:
1
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="" 1 --MultipartDataMediaFormatterBoundary1q2w3e--