Update instance account
Это руководство доступно только на английском.
Полезна ли эта страница?
Это руководство доступно только на английском.
Полезна ли эта страница?
Updates an existing Minecraft account in the instance. The account is matched by profile_id and replaced.
AuthorizationBearer <JWT>Preferred API authentication. Use a JWT with the api audience.
id*stringThe unique identifier (UUID) of the instance.
uuidapplication/jsonRequest to update an existing Minecraft account in an instance. The account is matched by profile_id and replaced with the new data.
account*The updated account data. The profile_id must match an existing account in the instance.
Response after successfully updating an account.
application/jsonResponse after successfully updating an account. Empty response indicates success.
curl -X POST 'http://127.0.0.1:38765/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/accounts:update' \ -H 'Content-Type: application/json' \ -d '{ "account": { "type": "MICROSOFT_JAVA_CREDENTIALS", "profileId": "faebe71b-2bf8-4bdb-9b67-258e4d6aa00a", "lastKnownName": "string" }}'{}curl -X POST 'http://127.0.0.1:38765/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/accounts:update' \
-H 'Content-Type: application/json' \
-d '{
"account": {
"type": "MICROSOFT_JAVA_CREDENTIALS",
"profileId": "faebe71b-2bf8-4bdb-9b67-258e4d6aa00a",
"lastKnownName": "string"
}
}'{}