3etDevelopers
AMS API / Position taking

Position taking — singlesPOST

Sets the position taking (taken) for single bets on chosen sport/market pairs. There is no {playerId} in the path.

POSThttps://api.3et.ams.com/ams/v1/api/player/positionTaking/singles
Requires apiToken

Body

FieldTypeNotes
playerIdlongTarget player
sportMarketsarrayEach item { "sport": { "id": … }, "market": { "id": … } }
marketLivebooleanAccepted but not passed on: the update runs with market status null
takendecimalPosition taking value

Request

curl -X POST "https://api.3et.ams.com/ams/v1/api/player/positionTaking/singles" \
  -H "apiToken: $(printenv 3ET_API_TOKEN)" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
  "playerId": 12345,
  "sportMarkets": [
    {
      "sport": {
        "id": 1
      },
      "market": {
        "id": 10
      }
    }
  ],
  "marketLive": false,
  "taken": 50
}'

Response 201

An empty body object:

json
{
  "id": null,
  "agentId": null,
  "market": null,
  "available": null
}

Errors

400 (value above what the parent agent allows, betting-platform failure), 401, 403, 500, 503.