PUT api/supplier/contact
Updates an contact on supplier
Request Information
URI Parameters
None.
Body Parameters
SupplierContactPutRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
Id of supplier contact |
globally unique identifier |
None. |
| SupplierId |
Id of the supplier that contact belongs to |
globally unique identifier |
Required |
| Name |
Name of the contact |
string |
Required Max length: 50 |
| Phone |
Phone number to the contact |
string |
Max length: 50 |
| Mobile |
Mobile number to contact |
string |
Max length: 50 |
Remarks
None.
Example
None.
Request Formats
application/json, text/json
Sample:
{
"Id": "b0c1f7aa-b01a-4fb5-bb01-ee3aacdf4499",
"SupplierId": "e5b5ff9a-1327-45aa-866a-44816cd3e217",
"Name": "sample string 3",
"Phone": "sample string 4",
"Mobile": "sample string 5"
}
application/xml, text/xml
Sample:
<SupplierContactPutRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Supplier"> <Mobile>sample string 5</Mobile> <Name>sample string 3</Name> <Phone>sample string 4</Phone> <SupplierId>e5b5ff9a-1327-45aa-866a-44816cd3e217</SupplierId> <Id>b0c1f7aa-b01a-4fb5-bb01-ee3aacdf4499</Id> </SupplierContactPutRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
SupplierContactPutResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Errors |
List of errors when updating a contatct on supplier |
Collection of PutSupplierContactError |
None. |
| Success |
Returns true if contact is updated |
boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"Errors": [
{
"ErrorCode": 1,
"ErrorMessage": "sample string 1"
},
{
"ErrorCode": 1,
"ErrorMessage": "sample string 1"
}
],
"Success": true
}
application/xml, text/xml
Sample:
<SupplierContactPutResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Supplier">
<Errors>
<PutSupplierContactError>
<ErrorCode>InternalServerError</ErrorCode>
<ErrorMessage>sample string 1</ErrorMessage>
</PutSupplierContactError>
<PutSupplierContactError>
<ErrorCode>InternalServerError</ErrorCode>
<ErrorMessage>sample string 1</ErrorMessage>
</PutSupplierContactError>
</Errors>
<Success>true</Success>
</SupplierContactPutResponse>