POST api/Vendors
Request Information
URI Parameters
None.
Body Parameters
VendorName | Description | Type | Additional information |
---|---|---|---|
VendorId | integer |
None. |
|
UtilityId | integer |
None. |
|
VendorNum | string |
Max length: 50 |
|
VendorName | string |
Max length: 100 |
|
DateCreated | date |
None. |
|
DateUpdated | date |
None. |
|
CreatedBy | integer |
None. |
|
UpdatedBy | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "VendorId": 1, "UtilityId": 2, "VendorNum": "sample string 3", "VendorName": "sample string 4", "DateCreated": "2024-03-29T06:25:59.3467621+00:00", "DateUpdated": "2024-03-29T06:25:59.3467621+00:00", "CreatedBy": 7, "UpdatedBy": 8 }
application/xml, text/xml
Sample:
<Vendor xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APL.Models"> <CreatedBy>7</CreatedBy> <DateCreated>2024-03-29T06:25:59.3467621+00:00</DateCreated> <DateUpdated>2024-03-29T06:25:59.3467621+00:00</DateUpdated> <UpdatedBy>8</UpdatedBy> <UtilityId>2</UtilityId> <VendorId>1</VendorId> <VendorName>sample string 4</VendorName> <VendorNum>sample string 3</VendorNum> </Vendor>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
VendorName | Description | Type | Additional information |
---|---|---|---|
VendorId | integer |
None. |
|
UtilityId | integer |
None. |
|
VendorNum | string |
Max length: 50 |
|
VendorName | string |
Max length: 100 |
|
DateCreated | date |
None. |
|
DateUpdated | date |
None. |
|
CreatedBy | integer |
None. |
|
UpdatedBy | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "VendorId": 1, "UtilityId": 2, "VendorNum": "sample string 3", "VendorName": "sample string 4", "DateCreated": "2024-03-29T06:25:59.3467621+00:00", "DateUpdated": "2024-03-29T06:25:59.3467621+00:00", "CreatedBy": 7, "UpdatedBy": 8 }
application/xml, text/xml
Sample:
<Vendor xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APL.Models"> <CreatedBy>7</CreatedBy> <DateCreated>2024-03-29T06:25:59.3467621+00:00</DateCreated> <DateUpdated>2024-03-29T06:25:59.3467621+00:00</DateUpdated> <UpdatedBy>8</UpdatedBy> <UtilityId>2</UtilityId> <VendorId>1</VendorId> <VendorName>sample string 4</VendorName> <VendorNum>sample string 3</VendorNum> </Vendor>