> ## Documentation Index
> Fetch the complete documentation index at: https://docs.patch.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# Change your display name, or give your birthday

> Patch is for people 13 and older. A birthday is given once; giving it again with another date returns 409 birthdate_set.



## OpenAPI

````yaml /api-reference/openapi.json patch /me
openapi: 3.1.0
info:
  title: Patch API
  version: 1.0.0
  description: >-
    The public API behind patch.gg, the desktop app and pch. Changes within v1
    are additive only. Errors are { error: { code, message, details } }; branch
    on code.
servers:
  - url: https://patch.gg/api/v1
security: []
paths:
  /me:
    patch:
      tags:
        - Account
      summary: Change your display name, or give your birthday
      description: >-
        Patch is for people 13 and older. A birthday is given once; giving it
        again with another date returns 409 birthdate_set.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 64
                birthdate:
                  type: string
                  pattern: ^\d{4}-\d{2}-\d{2}$
                  example: '2008-04-17'
                  description: YYYY-MM-DD
      responses:
        '200':
          description: Updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Me'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Not signed in
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Not allowed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearer: []
components:
  schemas:
    Me:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        email:
          type: string
        username:
          type:
            - string
            - 'null'
        birthdate:
          type:
            - string
            - 'null'
          description: YYYY-MM-DD, once given; only you see it
        role:
          type: string
          enum:
            - user
            - staff
        orgs:
          type: array
          items:
            type: object
            properties:
              slug:
                type: string
              name:
                type: string
              kind:
                type: string
                enum:
                  - personal
                  - team
                  - placeholder
              role:
                type: string
            required:
              - slug
              - name
              - kind
              - role
        auth:
          type: object
          properties:
            via:
              type: string
              enum:
                - session
                - api_key
            scopes:
              type:
                - array
                - 'null'
              items:
                type: string
                enum:
                  - read
                  - publish
                  - admin
          required:
            - via
            - scopes
      required:
        - id
        - name
        - email
        - username
        - birthdate
        - role
        - orgs
        - auth
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: version_exists
            message:
              type: string
            details: {}
          required:
            - code
            - message
      required:
        - error
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: An API key (pch_...) or the token from pch login.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.