Player Names
The Player Names service allows users to manage player names and other text fields.
Download OpenAPI specification:
Get a player's name.
Get a player's name. The '/me' endpoint can be used to get the name of the calling player.
Authorizations
Use any one of the following options.
Client
HTTP: Client
HTTP Authorization Scheme: bearer
or
ServiceAccount
HTTP: ServiceAccount
To get started with authentication, visit the Service Account Authentication section.
HTTP Authorization Scheme: bearer
Update a player's name.
Update a player's name, or create it if it doesn't exist. White space is not allowed in the name, and a random numeric suffix will automatically be added to it.
Authorizations
Use any one of the following options.
Client
HTTP: Client
HTTP Authorization Scheme: bearer
or
ServiceAccount
HTTP: ServiceAccount
To get started with authentication, visit the Service Account Authentication section.
HTTP Authorization Scheme: bearer
Code samples for "Update a player's name.":
Request example
curl -X POST \ -H "Authorization: Bearer <YOUR_TOKEN>" \ -H "Authorization: Bearer <YOUR_TOKEN>" \ -H "Content-Type: application/json" \ -d '{ "name": "string"}' \ "https://social.services.api.unity.com/v1/names/{playerId}"
Response example
{ "id": "string", "name": "string", "autoGenerated": true}