PUT api/supplier/contact
Updates an contact on supplier
Request Information
URI Parameters
None.
Body Parameters
SupplierContactPutRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| SupplierId | globally unique identifier |
Required |
|
| Name | string |
Required Max length: 50 |
|
| Phone | string |
Max length: 50 |
|
| Mobile | string |
Max length: 50 |
Remarks
None.
Example
None.
Request Formats
application/json, text/json
Sample:
{
"Id": "2b6f90a1-6074-4788-b365-d8f770fecc69",
"SupplierId": "81d44584-c5e7-464c-bb1c-a0c89bb21a46",
"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>81d44584-c5e7-464c-bb1c-a0c89bb21a46</SupplierId> <Id>2b6f90a1-6074-4788-b365-d8f770fecc69</Id> </SupplierContactPutRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
SupplierContactPutResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Errors | Collection of PutSupplierContactError |
None. |
|
| Success | 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>