API referenceBidding Spot Orders
POST /api/SpotOrders/PostBlockOrders
Creates or updates the supplied Block orders for one entity, dispatch day, Spot market, and market party. Sending an empty orders list soft-deletes all matching Block orders, so first retrieve the current set before editing.
POST
/api/SpotOrders/PostBlockOrderscurl -X POST "/api/SpotOrders/PostBlockOrders" \
-H "Authorization: $ATLAS_ETRM_API_DOCUMENTATION_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"data": {
"date": "2026-01-15T09:30:00Z",
"entityId": 0,
"marketPartyId": 0,
"market": 1,
"maxPrice": 0,
"minPrice": 0,
"orders": [
{
"customBlockOrderId": 0,
"side": 1,
"price": 0,
"mar": 0,
"exclusiveGroup": 0,
"linkedOrderId": 0,
"circularGroupId": 0,
"orderItemId": 0,
"blockOrderDetails": [
{
"id": 0,
"dispatchPeriod": 0,
"quantity": 0,
"timestampFrom": "2026-01-15T09:30:00Z",
"timestampTo": "2026-01-15T09:30:00Z"
}
],
"version": 0
}
]
}
}'Authorization
AuthorizationstringheaderrequiredJWT Authorization header using the Bearer scheme. Enter your token including the 'Bearer ' prefix (e.g. 'Bearer eyJ...').
Body
application/json
dataAtlas.SDK.Bidding.Models.Spot.BlockOrdersPostRequestBody
Response
application/json
OK
successbooleanerrorCodestring | nullerrorMessagestring | nullwarningMessagestring | nullinfoMessagestring | nullrecordCountinteger<int32>dataany
{
"success": true,
"errorCode": "string",
"errorMessage": "string",
"warningMessage": "string",
"infoMessage": "string",
"recordCount": 0,
"data": null
}