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.
AuctionInsertModel| Name | 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": "6bbaed7d-c917-4fc8-be68-2a835c5049ef",
"BidParcelId": "sample string 1",
"Name": "sample string 2",
"Comments": "sample string 3",
"PickUpDate": "2025-10-24T10:10:55.7948702+00:00",
"DeliveryDate": "2025-10-24T10:10:55.7948702+00:00",
"Type": 1,
"Value": 6.0,
"ExpirationDate": "2025-10-24T10:10:55.7948702+00:00",
"SelectedParcels": [
"a5f21ce7-415a-41f7-ba85-67152f09f8d3",
"9ecf0e1f-c6c4-4b1c-af2d-17717df235fe"
]
}
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>2025-10-24T10:10:55.7948702+00:00</DeliveryDate>
<ExpirationDate>2025-10-24T10:10:55.7948702+00:00</ExpirationDate>
<Name>sample string 2</Name>
<ParentAuctionId>6bbaed7d-c917-4fc8-be68-2a835c5049ef</ParentAuctionId>
<PickUpDate>2025-10-24T10:10:55.7948702+00:00</PickUpDate>
<SelectedParcels xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>a5f21ce7-415a-41f7-ba85-67152f09f8d3</d2p1:guid>
<d2p1:guid>9ecf0e1f-c6c4-4b1c-af2d-17717df235fe</d2p1:guid>
</SelectedParcels>
<Type>Timed</Type>
<Value>6</Value>
</AuctionInsertModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ServiceResult| Name | 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>