---
title: "Update My User Account"
url: "https://nov18-dev.movespot.fyi/apis/konnect-identity-management-internal-2/versions/770972f0-aec8-404b-85ec-1d58e7079be2/operations/patch-users-me"
---

> Full API specification: https://nov18-dev.movespot.fyi/apis/konnect-identity-management-internal-2/versions/770972f0-aec8-404b-85ec-1d58e7079be2.md

# Update My User Account

`PATCH` `/users/me`

Operation ID: `patch-users-me`

Updates the user account for the user identified in the token of the request.

## Request body

Content types: `application/json`

## Responses

- `200` - A get action response of a single user.
- `400` - Bad Request - Invalid Parameters
- `401` - Unauthenticated
- `403` - Forbidden - If a konnectAccessToken was not provided.

## OpenAPI definition

```yaml
openapi: 3.0.2
info:
  title: Konnect Identity Management
  version: 2.0.0
servers:
  - url: https://global.api.konghq.com/v2
    description: Global Base URL
paths:
  /users/me:
    patch:
      operationId: patch-users-me
      summary: Update My User Account
      description: Updates the user account for the user identified in the token of
        the request.
      requestBody:
        $ref: "#/components/requestBodies/UpdateUser"
      responses:
        "200":
          $ref: "#/components/responses/UserSingle"
        "400":
          description: Bad Request - Invalid Parameters
        "401":
          $ref: "#/components/responses/IdentityUnauthenticated"
        "403":
          description: Forbidden - If a konnectAccessToken was not provided.
      security:
        - konnectAccessToken: []
      tags:
        - Me
security:
  - konnectAccessToken: []
components:
  requestBodies:
    UpdateUser:
      description: The request schema for the update user request.
      content:
        application/json:
          schema:
            type: object
            properties:
              full_name:
                description: The user's full name.
                type: string
                example: James C. Woods
                maxLength: 250
                pattern: ^[\w \W]+$
                writeOnly: true
              preferred_name:
                description: The user's desired name.
                type: string
                example: Jimmy
                maxLength: 250
                writeOnly: true
          examples:
            Example Request Body:
              $ref: "#/components/examples/Update-User-Request"
  responses:
    UserSingle:
      description: A get action response of a single user.
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/User"
          examples:
            Example:
              $ref: "#/components/examples/Get-User-Response"
    IdentityUnauthenticated:
      description: Unauthenticated
      content:
        application/problem+json:
          schema:
            $ref: "#/components/schemas/UnauthorizedError"
          examples:
            Unauthorized:
              $ref: "#/components/examples/401-unauthenticated"
  examples:
    Update-User-Request:
      value:
        full_name: James C Woods
        preferred_name: Jimmy
    Get-User-Response:
      value:
        id: 7f9fd312-a987-4628-b4c5-bb4f4fddd5f7
        email: james.woods@email.com
        full_name: James Woods
        preferred_name: Jimmy
        active: true
        created_at: 1992-02-07T17:46:57.52Z
        updated_at: 2022-02-07T17:00:00.52Z
    401-unauthenticated:
      value:
        status: 401
        title: Unauthenticated
        instance: konnect:trace:952172606039454040
        detail: A valid token is required
  schemas:
    User:
      description: The user object contains information about an individual user who
        can use the Konnect application and API.
      type: object
      properties:
        id:
          description: The User ID.
          type: string
          format: uuid
          example: 7f9fd312-a987-4628-b4c5-bb4f4fddd5f7
          readOnly: true
        email:
          description: The email registered to the user.
          type: string
          format: email
          example: user@email.com
          maxLength: 250
        full_name:
          description: The User's full name.
          type: string
          example: Jane Doe
          maxLength: 250
          pattern: ^[\w \W]+$
        preferred_name:
          description: The User's preferred name.
          type: string
          example: Jane
          maxLength: 250
        active:
          description: Returns True if a user has verified their email address.
          type: boolean
          default: true
          readOnly: true
        inferred_region:
          description: The Konnect region closest to the user's IP address. This property
            might only be set for users on signup through Konnect’s build-in
            native authentication.
          type: string
          example: us
          readOnly: true
        created_at:
          description: The time stamp for the date the account was registered.
          type: string
          format: date-time
          example: 2022-02-07T17:46:57.52Z
          readOnly: true
        updated_at:
          description: A Unix timestamp representation of the most recent change to the
            User account.
          type: string
          format: date-time
          example: 2022-10-08T17:00:00.52Z
          readOnly: true
      example:
        id: 7f9fd312-a987-4628-b4c5-bb4f4fddd5f7
        email: user@email.com
        full_name: Test User
        preferred_name: test
        active: true
        inferred_region: us
        created_at: 2022-02-07T17:46:57.52Z
        updated_at: 2022-10-08T17:00:00.52Z
      title: User
    UnauthorizedError:
      allOf:
        - $ref: "#/components/schemas/BaseError"
        - type: object
          properties:
            status:
              example: 401
            title:
              example: Unauthorized
            type:
              example: https://httpstatuses.com/401
            instance:
              example: kong:trace:1234567890
            detail:
              example: Invalid credentials
    BaseError:
      description: standard error
      type: object
      properties:
        status:
          description: >
            The HTTP status code of the error. Useful when passing the response

            body to child properties in a frontend UI. Must be returned as an
            integer.
          type: integer
          readOnly: true
        title:
          description: |
            A short, human-readable summary of the problem. It should not
            change between occurences of a problem, except for localization.
            Should be provided as "Sentence case" for direct use in the UI.
          type: string
          readOnly: true
        type:
          description: The error type.
          type: string
          readOnly: true
        instance:
          description: |
            Used to return the correlation ID back to the user, in the format
            kong:trace:<correlation_id>. This helps us find the relevant logs
            when a customer reports an issue.
          type: string
          readOnly: true
        detail:
          description: >
            A human readable explanation specific to this occurence of the
            problem.

            This field may contain request/entity data to help the user
            understand

            what went wrong. Enclose variable values in square brackets. Should
            be

            provided as "Sentence case" for direct use in the UI.
          type: string
          readOnly: true
      required:
        - status
        - title
        - instance
        - detail
      title: Error
  securitySchemes:
    konnectAccessToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >
        The Konnect access token is meant to be used by the Konnect dashboard
        and the decK CLI authenticate with.
```
