POST api/Auction/Create?authToken={authToken}
Creates an Auction.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
authToken |
The authentication token. |
string |
Required |
Body Parameters
The model.
AuctionInsertModelName | Description | Type | Additional information |
---|---|---|---|
ParentAuctionId | globally unique identifier |
None. |
|
BidParcelId | string |
Max length: 128 |
|
Name | string |
Required Max length: 256 |
|
Comments | string |
None. |
|
PickUpDate | date |
Required |
|
DeliveryDate | date |
Required |
|
Type | AuctionType |
Required |
|
Value | decimal number |
Required |
|
ExpirationDate | date |
Required |
|
SelectedParcels | Collection of globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{ "ParentAuctionId": "b7a122e9-71be-419c-a7fc-ac4ce573e8f0", "BidParcelId": "sample string 1", "Name": "sample string 2", "Comments": "sample string 3", "PickUpDate": "2024-11-05T15:17:56.4087726+00:00", "DeliveryDate": "2024-11-05T15:17:56.4087726+00:00", "Type": 1, "Value": 6.0, "ExpirationDate": "2024-11-05T15:17:56.4087726+00:00", "SelectedParcels": [ "862a8cd0-84ad-479a-bcd7-3c472decfdc1", "98f7a3d9-108d-4bc0-b1a9-30dad1bc57ba" ] }
application/xml, text/xml
Sample:
<AuctionInsertModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOP.Apps.Web.Areas.Api.Models"> <BidParcelId>sample string 1</BidParcelId> <Comments>sample string 3</Comments> <DeliveryDate>2024-11-05T15:17:56.4087726+00:00</DeliveryDate> <ExpirationDate>2024-11-05T15:17:56.4087726+00:00</ExpirationDate> <Name>sample string 2</Name> <ParentAuctionId>b7a122e9-71be-419c-a7fc-ac4ce573e8f0</ParentAuctionId> <PickUpDate>2024-11-05T15:17:56.4087726+00:00</PickUpDate> <SelectedParcels xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>862a8cd0-84ad-479a-bcd7-3c472decfdc1</d2p1:guid> <d2p1:guid>98f7a3d9-108d-4bc0-b1a9-30dad1bc57ba</d2p1:guid> </SelectedParcels> <Type>Timed</Type> <Value>6</Value> </AuctionInsertModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ServiceResultName | Description | Type | Additional information |
---|---|---|---|
ErrorCode | ServiceErrorCode |
None. |
|
ErrorMessage | Collection of string |
None. |
|
Success | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "ErrorCode": 0, "ErrorMessage": [ "sample string 1", "sample string 2" ], "Success": true }
application/xml, text/xml
Sample:
<ServiceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOP.Common.Infrastructure.ApiObjects.Results"> <ErrorCode>None</ErrorCode> <ErrorMessage xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </ErrorMessage> <Success>true</Success> </ServiceResult>