Add instance account
Это руководство доступно только на английском.
Adds a Minecraft account to the instance. The account's profile_id must be unique within the instance.
AuthorizationBearer <JWT>Preferred API authentication. Use a JWT with the api audience.
id*stringThe unique identifier (UUID) of the instance.
uuidapplication/json- body
Request to add a single Minecraft account to an instance.
account*The Minecraft account to add. The profile_id must be unique within the instance.
Response after successfully adding an account.
application/json- response
Response after successfully adding an account. Empty response indicates success.
curl -X POST 'http://127.0.0.1:38765/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/accounts' \
-H 'Content-Type: application/json' \
-d '{
"account": {
"type": "MICROSOFT_JAVA_CREDENTIALS",
"profileId": "faebe71b-2bf8-4bdb-9b67-258e4d6aa00a",
"lastKnownName": "string"
}
}'{}Полезна ли эта страница?
Download URL POST
Downloads content from the specified URI and returns the response. Makes an HTTP GET request to the URI specified in the request, optionally routing through a proxy. Custom headers can be provided to customize the request.
Batch add instance accounts POST
Adds multiple Minecraft accounts to the instance in a single operation. More efficient than multiple AddInstanceAccount calls.
