PUT api/supplier/contact

Updates an contact on supplier

Request Information

URI Parameters

None.

Body Parameters

SupplierContactPutRequest
NameDescriptionTypeAdditional 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": "e611f047-4e50-4677-8500-7f86428b9c8b",
  "SupplierId": "95ef3d95-ef8a-43a9-94bd-584ee0b8c625",
  "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>95ef3d95-ef8a-43a9-94bd-584ee0b8c625</SupplierId>
  <Id>e611f047-4e50-4677-8500-7f86428b9c8b</Id>
</SupplierContactPutRequest>

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 'SupplierContactPutRequest'.

Response Information

Resource Description

SupplierContactPutResponse
NameDescriptionTypeAdditional 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>