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.
POST
https://api.3et.ams.com/ams/v1/api/player/positionTaking/singles Requires
apiTokenBody
| Field | Type | Notes |
|---|---|---|
playerId | long | Target player |
sportMarkets | array | Each item { "sport": { "id": … }, "market": { "id": … } } |
marketLive | boolean | Accepted but not passed on: the update runs with market status null |
taken | decimal | Position 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.
