Skip to main content

RegisterUserInput

No description

input RegisterUserInput {
email: String!
password: String!
gamertag: String
acceptLegal: Boolean
attestAgeOfMajority: Boolean
birthDate: String
country: String
parentalConfirmation: Boolean
}

Fields​

RegisterUserInput.email ● String! non-null scalar​

Email for the new account; the confirmation email is sent here.

RegisterUserInput.password ● String! non-null scalar​

Password for the new account (min 8 characters).

RegisterUserInput.gamertag ● String scalar​

Optional initial public gamertag (3 to 64 characters, none of them control, line-break or bidirectional-formatting characters). Can be set later via updateGamertag.

True when the player has agreed to the platform's current player documents (playerLegalDocuments). A browser signup that omits this, or sends false, is refused with LEGAL_ACCEPTANCE_REQUIRED. Calls with no Origin header may omit it; gameplay tokens stay refused until the documents are stored.

RegisterUserInput.attestAgeOfMajority ● Boolean scalar​

True when the player attests they are at least 18, or the age of majority where they live if that is higher. Same requirement as acceptLegal while the platform uses the attestation: required on a browser signup, optional when the request has no Origin. Ignored once the platform asks for birthDate instead.

RegisterUserInput.birthDate ● String scalar​

Birth date, YYYY-MM-DD (YYYY-MM is accepted too); only the year and month are kept, and the age is counted from the last day of that month. Sent with country. Required on a browser signup once the platform admits players under 18 (AGE_REQUIRED without it); a request with no Origin may omit it and gives it later with recordPlayerAge. Under 13, or under the minimum age where the player is, the signup is refused with AGE_REQUIREMENT_NOT_MET (it names no age) and no account is made; afterwards the same client is refused AGE_REQUIREMENT_NOT_MET whatever it sends: for 24 hours a device that sent the x-ck-device-id header (an opaque random id the client keeps), else for an hour the same address and user agent.

RegisterUserInput.country ● String scalar​

The country the player lives in, ISO 3166-1 alpha-2 (such as US); required with birthDate. A country Crowded Kingdoms does not serve, declared or detected from the network address, is refused with TERRITORY_NOT_SUPPORTED before an account exists.

RegisterUserInput.parentalConfirmation ● Boolean scalar​

True when a player under 18 confirms that a parent or guardian agreed to their account. Required true under 18; ignored at 18 or over.

Member Of​

register mutation