Skip to content

API Reference / Proxy assignments

Rebind all assignments in a pool

Moves every unpinned assignment in a pool to a freshly chosen healthy session. Returns the identifiers of the assignments that actually changed session. If a call fails partway through the pool, the error carries a RebindAllAssignmentsInPoolResponse detail listing the assignment ids that had already moved before the failure, so a caller can recover that progress instead of retrying the whole pool.

POST/proxies.v1.Proxies/RebindAllAssignmentsInPool

Request body

application/jsonRequired

Request to move every unpinned assignment in a pool to a freshly chosen enabled, healthy session.

poolId?string

Opaque 16-byte identifier of the pool whose unpinned assignments to move, base64-encoded in JSON.

Format"byte" base64

Response body

application/json

Success

assignmentIds?array<string>

Opaque 16-byte identifiers, each base64-encoded in JSON, of the assignments that moved. An assignment that drew its existing session again is left out.

curl -X POST "https://api.goldmine.to/proxies.v1.Proxies/RebindAllAssignmentsInPool" \
  -H "Authorization: Bearer $CSTRADER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "poolId": "AY+MISIifMyN3T09PT09PQ=="
  }'
{
  "assignmentIds": [
    "AY+MI0REf/+Kql9fX19fXw==",
    "AY+MI1VVe7uMzGpqampqag=="
  ]
}