PUT api/supplier/contact

Updates an contact on supplier

Request Information

URI Parameters

None.

Body Parameters

SupplierContactPutRequest
NameDescriptionTypeAdditional 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": "f2f4563c-b234-463a-a779-4b0f01b0bb36",
  "SupplierId": "5d6cf5f6-27ac-494a-87fe-58a4248c2e4e",
  "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>5d6cf5f6-27ac-494a-87fe-58a4248c2e4e</SupplierId>
  <Id>f2f4563c-b234-463a-a779-4b0f01b0bb36</Id>
</SupplierContactPutRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

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