UpdateVendor
Overview
Request Information
Method
POST - api/Vendor/UpdateVendor
URI Parameters
None.
Body Parameters
AddUpdateVendorViewModel
Name | Description | Type | Additional information |
---|---|---|---|
VendorId |
Conditional: Represents the PK of the Vendor. Only populated when calling an Update method. |
globally unique identifier |
None. |
Name |
Required: Represents the name of the Vendor. Max Length = 50 |
string |
None. |
ACSystemId |
Required: Represents the PK of the Access Control System that the Vendor belongs to. |
globally unique identifier |
None. |
OccupancyId |
Optional: Represents the PK of the Occupancy the Vendor performs work for (if applicable) |
globally unique identifier |
None. |
CompanyId |
Required: Represents the PK of the global company that the Vendor is an instance of. |
globally unique identifier |
None. |
StreetAddress1 |
Required: Represents the primary street address of the Vendor |
string |
None. |
StreetAddress2 |
Optional: Represents the secondary street address of the Vendor |
string |
None. |
City |
Required:Represents the city of the Vendor |
string |
None. |
RegionId |
Required:Represents the PK of the region (State, Province, County, etc) of the Vendor |
globally unique identifier |
None. |
CountryId |
Required:Represents the PK of the country of the Vendor |
globally unique identifier |
None. |
PostalCode |
Required: Represents the Postal Code/Zip Code of the Vendor |
string |
None. |
Phone |
Optional: Represents the primary phone number of the Vendor |
string |
None. |
VendorNumber |
Optional: Represents the vendor number used to refer to the vendor (typically from an accounting package) |
string |
None. |
TimeZoneInfoId |
Required: Represents the TimeZone of the Facility |
string |
None. |
Deleted |
Represents the deleted status of the Vendor |
boolean |
None. |
JSON
{ "VendorId": "67d18f23-fc72-482e-a270-e2fd3b9ac819", "Name": "sample string 1", "ACSystemId": "d0b50ddc-4a66-4b3b-afd8-06ef4c0f90fb", "OccupancyId": "3bda463e-69f2-4be5-9c2c-6657c4d5c1a2", "CompanyId": "f5dfd13a-265e-4b84-9c46-a4182789af09", "StreetAddress1": "sample string 4", "StreetAddress2": "sample string 5", "City": "sample string 6", "RegionId": "149b0f62-b590-40bf-9f2e-e98c42527a43", "CountryId": "44a8cf10-a64e-4f77-b5c2-82baf6cbf97d", "PostalCode": "sample string 9", "Phone": "sample string 10", "VendorNumber": "sample string 11", "TimeZoneInfoId": "sample string 12", "Deleted": true }
XML
<AddUpdateVendorViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BluSKYWebAPI.Controllers"> <ACSystemId>d0b50ddc-4a66-4b3b-afd8-06ef4c0f90fb</ACSystemId> <City>sample string 6</City> <CompanyId>f5dfd13a-265e-4b84-9c46-a4182789af09</CompanyId> <CountryId>44a8cf10-a64e-4f77-b5c2-82baf6cbf97d</CountryId> <Deleted>true</Deleted> <Name>sample string 1</Name> <OccupancyId>3bda463e-69f2-4be5-9c2c-6657c4d5c1a2</OccupancyId> <Phone>sample string 10</Phone> <PostalCode>sample string 9</PostalCode> <RegionId>149b0f62-b590-40bf-9f2e-e98c42527a43</RegionId> <StreetAddress1>sample string 4</StreetAddress1> <StreetAddress2>sample string 5</StreetAddress2> <TimeZoneInfoId>sample string 12</TimeZoneInfoId> <VendorId>67d18f23-fc72-482e-a270-e2fd3b9ac819</VendorId> <VendorNumber>sample string 11</VendorNumber> </AddUpdateVendorViewModel>
Response Information
Resource Description
Result
Name | Description | Type | Additional information |
---|---|---|---|
ResultCode |
Represents the result code |
integer |
None. |
Description |
Represents a description of the result code |
string |
None. |
Response Formats
JSON
{ "ResultCode": 1, "Description": "sample string 2" }
XML
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BluSKYWebAPI.Controllers"> <Description>sample string 2</Description> <ResultCode>1</ResultCode> </Result>