Set account metadata entry
Ten poradnik jest dostępny tylko po angielsku.
PUT
Sets a single persistent metadata entry for a Minecraft account. Creates the namespace and key if they don't exist, or updates if they do.
header
AuthorizationBearer <JWT>Preferred API authentication. Use a JWT with the api audience.
instance_id*stringThe unique identifier (UUID) of the instance containing the account.
Format
uuidaccount_id*stringThe profile_id (UUID) of the Minecraft account.
Format
uuidnamespace*stringThe namespace for the metadata entry.
key*stringThe key for the metadata entry within the namespace.
application/json- body
Request to set a single persistent metadata entry for an account.
value*unknownThe value to set. Supports JSON value types.
Response after successfully setting a metadata entry.
application/json- response
Response after successfully setting a metadata entry. Empty response indicates success.
curl -X PUT 'http://127.0.0.1:38765/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/accounts/497f6eca-6276-4993-bfeb-53cbbbba6f08/metadata/namespaces/string/entries/string' \
-H 'Content-Type: application/json' \
-d '{
"value": null
}'Example Response
{}Czy ta strona jest pomocna?
