Skip to content
SoulFire LogoSoulFire

Batch add instance accounts

POST
/v1/instances/{id}/accounts:batchAdd

Adds multiple Minecraft accounts to the instance in a single operation. More efficient than multiple AddInstanceAccount calls.

Authorization

headerAuthorizationBearer <JWT>

Preferred API authentication. Use a JWT with the api audience.

Path Parameters

id*string

The unique identifier (UUID) of the instance.

Formatuuid

Request Body

application/json
  1. body

Request to add multiple Minecraft accounts to an instance in a single operation. More efficient than multiple individual AddInstanceAccount calls.

accounts*array<>

List of accounts to add. Each account's profile_id must be unique within the instance.

Response Body

Response after successfully adding accounts in batch.

application/json
  1. response

Response after successfully adding accounts in batch. Empty response indicates success.

Example Request
curl -X POST 'http://127.0.0.1:38765/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/accounts:batchAdd' \
  -H 'Content-Type: application/json' \
  -d '{
  "accounts": [
    {
      "type": "MICROSOFT_JAVA_CREDENTIALS",
      "profileId": "faebe71b-2bf8-4bdb-9b67-258e4d6aa00a",
      "lastKnownName": "string"
    }
  ]
}'
Example Response
{}

Was this page helpful?