Goldmine
Assignments

Create many proxy assignments

POST
/proxies.v1.Proxies/BulkCreateAssignment

Binds many accounts to proxy sessions in one call. Each row is committed independently and the response reports per-row success or a typed error, so one bad row does not fail the whole batch. The operation is idempotent per account: a row whose account is already bound to the same pool converges on the existing assignment as a no-op success, while a row whose account is already bound to a different pool reports ALREADY_EXISTS.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://loading/proxies.v1.Proxies/BulkCreateAssignment" \  -H "Content-Type: application/json" \  -d '{    "assignments": [      {        "poolId": "AY+MISIifMyN3T09PT09PQ==",        "sessionId": "AY+MIjMzfu6P/05OTk5OTg==",        "accountName": "steam_bot_01",        "pinned": true      },      {        "poolId": "AY+MISIifMyN3T09PT09PQ==",        "sessionId": "AY+MIkREeqqLu19fX19fXw==",        "accountName": "steam_bot_02"      }    ]  }'
{
  "results": [
    {
      "assignmentId": "AY+MI0REf/+Kql9fX19fXw=="
    },
    {
      "error": {
        "code": "BULK_CREATE_ASSIGNMENT_ERROR_CODE_ALREADY_EXISTS",
        "message": "assignment already exists for this pool and account"
      }
    }
  ]
}

{
  "code": "failed_precondition",
  "message": "The request cannot be carried out in the current system state."
}

{
  "code": "unauthenticated",
  "message": "The request lacks a valid API key in the Authorization header."
}
{
  "code": "permission_denied",
  "message": "The API key is not allowed to perform this action on this workspace."
}
{
  "code": "resource_exhausted",
  "message": "The request was rate limited. Slow down and retry later."
}
{
  "code": "internal",
  "message": "An internal server error occurred."
}
{
  "code": "unavailable",
  "message": "The service is temporarily unavailable. Retry with backoff."
}