Files
GeyserWebsite/docs/api/api.geysermc.org/global-api-web-api-link-controller-get-bedrock-link-v-2.api.mdx
T
2024-03-12 15:38:42 +00:00

253 lines
9.0 KiB
Plaintext

---
id: global-api-web-api-link-controller-get-bedrock-link-v-2
title: "Get linked Java account from Bedrock xuid"
description: "Get linked Java account from Bedrock xuid"
sidebar_label: "Get linked Java account from Bedrock xuid"
hide_title: true
hide_table_of_contents: true
api: eJylVU1v4zYQ/SvEnLqAYju2k3V0c9tFsEXRQ5Ggh8AIxtTYYkyRXJJyYxj674uhJMdfwHbRk75m5s17M3zag0Stlyg3AfJ9k4F15DEqa74WkMOjtkvUc6f+oeVg7tTgT2U2v1kTvdWa/GBN8XVJhbdy86qV2bxux5CBQ48VRfIB8pc9FBSkV46LQg6/tuHivVYFZEDvWDlNkMP4bnI3nYxvH+5H09lscgcZKE5wGEvIwGDFUV2ap2+18lRAHn1NGQRZUoWQ7yHuHMeF6JVZQ9MsODg4awIxRRiPRnyR1kQykW/ROa1kIj18C9zk/qjeafdzwTTFkuK/REag+AO3KNAUAkXPDKW0tYkshGc5o2qRe6FUcVmXaQm7ErGkQx2ncUf+WKNziTJYWV9hhByUifdTyHr6ykRak4cmgzfc4lXM5+evv/eYicYlIBSTKS2n08839/QwupnKz7Obh/Hs9uZ+NCpWsxnS6pbHcWijbsdzNoSuiXaEF20E8vzlR608qWo8mlwrrjHEVPy1dgXGaxhGvYtKaa1CD8NJLVYCbzOFLElu4D/o2hzv4MvxbD8UP6Z9pctFBlHFxI2P1QeIXb6RjNAwyCkPjqOi37AgrBdoBFUu7kSbJVSi50moIIztQ9PaUsFqTf/XAXgkQ15J0QrEF+E8xbgTVS1LQVvyO0HeWw+nClUUAq4T69Nj0X+4gHoqqa0k+pCL2TcfEn7pMH+o4V82eY9w3m5VQQWLqMwWtSragrhm3wJWjLs9599r2R39Tt+Vt5U487aKYmnZRteU3ICNLIfhdjzkCsNuZ4Z7Dm8gg0B+25tm7TXkUMboQj4colODNe0C+UoOrF9DBlv0Cpc6aZhcLpCsvYo7yF8WbJ0rm+ywk6d1cjF3inPJh5bO7WA0GPNWOBtihWn0ndP+DNMTjQ4eHOk9Dp1GZRghMdp3KrxA+lPodu87JSCDPBVcZFDaEDlsv19ioGevm4Zff6vJdwx7Adp/jAp8X0C+Qh3ooqPDtsMvf3dL+emcxNWuu5dodklzXfMTZLChXf83ahZNBiVhQT710n6aS0kuHiVdnDIe2mFFHr88QdN8B2WxkM8=
sidebar_class_name: "get api-method"
info_path: api/api.geysermc.org/global-api
custom_edit_url: null
---
import ApiTabs from "@theme/ApiTabs";
import DiscriminatorTabs from "@theme/DiscriminatorTabs";
import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import SecuritySchemes from "@theme/ApiExplorer/SecuritySchemes";
import MimeTabs from "@theme/MimeTabs";
import ParamsItem from "@theme/ParamsItem";
import ResponseSamples from "@theme/ResponseSamples";
import SchemaItem from "@theme/SchemaItem";
import SchemaTabs from "@theme/SchemaTabs";
import Markdown from "@theme/Markdown";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
<h1
className={"openapi__heading"}
>
Get linked Java account from Bedrock xuid
</h1>
<MethodEndpoint
method={"get"}
path={"/v2/link/bedrock/{xuid}"}
>
</MethodEndpoint>
Get linked Java account from Bedrock xuid
## Request
<details
style={{"marginBottom":"1rem"}}
className={"openapi-markdown__details"}
data-collapsed={false}
open={true}
>
<summary
style={{}}
>
<h3
className={"openapi-markdown__details-summary-header-params"}
>
Path Parameters
</h3>
</summary><div>
<ul>
<ParamsItem
className={"paramsItem"}
param={{"description":"Bedrock xuid","example":"2535432196048835","in":"path","name":"xuid","required":true,"schema":{"type":"string"}}}
>
</ParamsItem>
</ul>
</div>
</details><div>
<div>
<ApiTabs
label={undefined}
id={undefined}
>
<TabItem
label={"200"}
value={"200"}
>
<div>
Linked accounts or an empty object if there is no account linked
</div><div>
<MimeTabs
className={"openapi-tabs__mime"}
schemaType={"response"}
>
<TabItem
label={"application/json"}
value={"application/json"}
>
<SchemaTabs
className={"openapi-tabs__schema"}
>
<TabItem
label={"Schema"}
value={"Schema"}
>
<details
style={{}}
className={"openapi-markdown__details response"}
data-collapsed={false}
open={true}
>
<summary
style={{}}
className={"openapi-markdown__details-summary-response"}
>
<strong>
Schema
</strong>
</summary><div
style={{"textAlign":"left","marginLeft":"1rem"}}
>
</div><ul
style={{"marginLeft":"1rem"}}
>
<SchemaItem
collapsible={false}
name={"bedrock_id"}
required={true}
schemaName={"int64"}
qualifierMessage={undefined}
schema={{"description":"xuid of the Bedrock player","example":2535432196048835,"format":"int64","type":"integer"}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"java_id"}
required={true}
schemaName={"uuid"}
qualifierMessage={undefined}
schema={{"description":"UUID of the Java player","example":"d34eb447-6e90-4c78-9281-600df88aef1d","format":"uuid","type":"string"}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"java_name"}
required={true}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"description":"Username of the Java player","example":"Tim203","type":"string"}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"last_name_update"}
required={true}
schemaName={"int64"}
qualifierMessage={undefined}
schema={{"description":"Unix millis of the last Java name update check","format":"int64","type":"integer"}}
>
</SchemaItem>
</ul>
</details>
</TabItem><TabItem
label={"Example (from schema)"}
value={"Example (from schema)"}
>
<ResponseSamples
responseExample={"{\n \"bedrock_id\": 2535432196048835,\n \"java_id\": \"d34eb447-6e90-4c78-9281-600df88aef1d\",\n \"java_name\": \"Tim203\",\n \"last_name_update\": 0\n}"}
language={"json"}
>
</ResponseSamples>
</TabItem>
</SchemaTabs>
</TabItem>
</MimeTabs>
</div>
</TabItem><TabItem
label={"400"}
value={"400"}
>
<div>
No xuid provided or invalid
</div><div>
<MimeTabs
className={"openapi-tabs__mime"}
schemaType={"response"}
>
<TabItem
label={"application/json"}
value={"application/json"}
>
<SchemaTabs
className={"openapi-tabs__schema"}
>
<TabItem
label={"Schema"}
value={"Schema"}
>
<details
style={{}}
className={"openapi-markdown__details response"}
data-collapsed={false}
open={true}
>
<summary
style={{}}
className={"openapi-markdown__details-summary-response"}
>
<strong>
Schema
</strong>
</summary><div
style={{"textAlign":"left","marginLeft":"1rem"}}
>
</div><ul
style={{"marginLeft":"1rem"}}
>
<SchemaItem
collapsible={false}
name={"message"}
required={true}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"description":"The error message","type":"string"}}
>
</SchemaItem>
</ul>
</details>
</TabItem><TabItem
label={"Example (from schema)"}
value={"Example (from schema)"}
>
<ResponseSamples
responseExample={"{\n \"message\": \"string\"\n}"}
language={"json"}
>
</ResponseSamples>
</TabItem>
</SchemaTabs>
</TabItem>
</MimeTabs>
</div>
</TabItem>
</ApiTabs>
</div>
</div>