POST api/vendor/updatevendor
Request Information
URI Parameters
None.
Body Parameters
VendorName | Description | Type | Additional information |
---|---|---|---|
VendorId | integer |
None. |
|
CompanyName | string |
None. |
|
Address | string |
None. |
|
City | string |
None. |
|
StateId | integer |
None. |
|
CityId | integer |
None. |
|
Zipcode | integer |
None. |
|
CountryId | integer |
None. |
|
EmaiId | string |
None. |
|
ContractFromDate | date |
None. |
|
ContractToDate | date |
None. |
|
ContractDocumentPath | string |
None. |
|
IsPrimaryVendor | boolean |
None. |
|
ApiUsername | string |
None. |
|
ApiPassword | string |
None. |
|
ApiKey | string |
None. |
|
VendorPriority | integer |
None. |
|
VendorContacts | Collection of VendorContact |
None. |
|
CreatedDate | date |
None. |
|
ModifiedDate | date |
None. |
|
CreatedBy | integer |
None. |
|
ModifiedBy | integer |
None. |
|
IsActive | boolean |
None. |
|
IsDeleted | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "VendorId": 1, "CompanyName": "sample string 2", "Address": "sample string 3", "City": "sample string 4", "StateId": 1, "CityId": 1, "Zipcode": 5, "CountryId": 6, "EmaiId": "sample string 7", "ContractFromDate": "2025-06-24T13:40:58.1307901+00:00", "ContractToDate": "2025-06-24T13:40:58.1307901+00:00", "ContractDocumentPath": "sample string 8", "IsPrimaryVendor": true, "ApiUsername": "sample string 10", "ApiPassword": "sample string 11", "ApiKey": "sample string 12", "VendorPriority": 13, "VendorContacts": [ { "VendorContactId": 1, "VendorId": 2, "FirstName": "sample string 3", "LastName": "sample string 4", "EmailId": "sample string 5", "PhoneNo": "sample string 6", "CreatedDate": "2025-06-24T13:40:58.1307901+00:00", "ModifiedDate": "2025-06-24T13:40:58.1307901+00:00", "CreatedBy": 1, "ModifiedBy": 1, "IsActive": true, "IsDeleted": true }, { "VendorContactId": 1, "VendorId": 2, "FirstName": "sample string 3", "LastName": "sample string 4", "EmailId": "sample string 5", "PhoneNo": "sample string 6", "CreatedDate": "2025-06-24T13:40:58.1307901+00:00", "ModifiedDate": "2025-06-24T13:40:58.1307901+00:00", "CreatedBy": 1, "ModifiedBy": 1, "IsActive": true, "IsDeleted": true } ], "CreatedDate": "2025-06-24T13:40:58.1307901+00:00", "ModifiedDate": "2025-06-24T13:40:58.1307901+00:00", "CreatedBy": 1, "ModifiedBy": 1, "IsActive": true, "IsDeleted": true }
text/html
Sample:
{"VendorId":1,"CompanyName":"sample string 2","Address":"sample string 3","City":"sample string 4","StateId":1,"CityId":1,"Zipcode":5,"CountryId":6,"EmaiId":"sample string 7","ContractFromDate":"2025-06-24T13:40:58.1307901+00:00","ContractToDate":"2025-06-24T13:40:58.1307901+00:00","ContractDocumentPath":"sample string 8","IsPrimaryVendor":true,"ApiUsername":"sample string 10","ApiPassword":"sample string 11","ApiKey":"sample string 12","VendorPriority":13,"VendorContacts":[{"VendorContactId":1,"VendorId":2,"FirstName":"sample string 3","LastName":"sample string 4","EmailId":"sample string 5","PhoneNo":"sample string 6","CreatedDate":"2025-06-24T13:40:58.1307901+00:00","ModifiedDate":"2025-06-24T13:40:58.1307901+00:00","CreatedBy":1,"ModifiedBy":1,"IsActive":true,"IsDeleted":true},{"VendorContactId":1,"VendorId":2,"FirstName":"sample string 3","LastName":"sample string 4","EmailId":"sample string 5","PhoneNo":"sample string 6","CreatedDate":"2025-06-24T13:40:58.1307901+00:00","ModifiedDate":"2025-06-24T13:40:58.1307901+00:00","CreatedBy":1,"ModifiedBy":1,"IsActive":true,"IsDeleted":true}],"CreatedDate":"2025-06-24T13:40:58.1307901+00:00","ModifiedDate":"2025-06-24T13:40:58.1307901+00:00","CreatedBy":1,"ModifiedBy":1,"IsActive":true,"IsDeleted":true}
application/xml, text/xml
Sample:
<Vendor xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SRG.Core"> <CreatedBy>1</CreatedBy> <CreatedDate>2025-06-24T13:40:58.1307901+00:00</CreatedDate> <IsActive>true</IsActive> <IsDeleted>true</IsDeleted> <ModifiedBy>1</ModifiedBy> <ModifiedDate>2025-06-24T13:40:58.1307901+00:00</ModifiedDate> <Address>sample string 3</Address> <ApiKey>sample string 12</ApiKey> <ApiPassword>sample string 11</ApiPassword> <ApiUsername>sample string 10</ApiUsername> <City>sample string 4</City> <CityId>1</CityId> <CompanyName>sample string 2</CompanyName> <ContractDocumentPath>sample string 8</ContractDocumentPath> <ContractFromDate>2025-06-24T13:40:58.1307901+00:00</ContractFromDate> <ContractToDate>2025-06-24T13:40:58.1307901+00:00</ContractToDate> <CountryId>6</CountryId> <EmaiId>sample string 7</EmaiId> <IsPrimaryVendor>true</IsPrimaryVendor> <StateId>1</StateId> <VendorContacts> <VendorContact> <CreatedBy>1</CreatedBy> <CreatedDate>2025-06-24T13:40:58.1307901+00:00</CreatedDate> <IsActive>true</IsActive> <IsDeleted>true</IsDeleted> <ModifiedBy>1</ModifiedBy> <ModifiedDate>2025-06-24T13:40:58.1307901+00:00</ModifiedDate> <EmailId>sample string 5</EmailId> <FirstName>sample string 3</FirstName> <LastName>sample string 4</LastName> <PhoneNo>sample string 6</PhoneNo> <VendorContactId>1</VendorContactId> <VendorId>2</VendorId> </VendorContact> <VendorContact> <CreatedBy>1</CreatedBy> <CreatedDate>2025-06-24T13:40:58.1307901+00:00</CreatedDate> <IsActive>true</IsActive> <IsDeleted>true</IsDeleted> <ModifiedBy>1</ModifiedBy> <ModifiedDate>2025-06-24T13:40:58.1307901+00:00</ModifiedDate> <EmailId>sample string 5</EmailId> <FirstName>sample string 3</FirstName> <LastName>sample string 4</LastName> <PhoneNo>sample string 6</PhoneNo> <VendorContactId>1</VendorContactId> <VendorId>2</VendorId> </VendorContact> </VendorContacts> <VendorId>1</VendorId> <VendorPriority>13</VendorPriority> <Zipcode>5</Zipcode> </Vendor>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html, application/xml, text/xml
Sample:
Sample not available.