Users

Update the current user's profile

Changed on
patch/users/me

Request

  • Base URL
    https://api.session.services
  • Auth
    API key in header x-tenant-id

Request body

object required

Input for updating the current user's profile

firstName, string
lastName, string
imageUrl, string uri nullable
metadata, object
refreshToken, string

Current refresh token. When provided, new tokens with updated user data will be returned.

Response

OK

object required

Response payload for PATCH /users/me containing the updated user profile.

user, object required

The updated user profile

tokens, object

New JWT tokens with updated user data. Present when refresh token was provided in request.

Example response

{
  "user": {
    "id": "usr_01jps5cgsd4tzjghtnt45qnhn0",
    "createdAt": "2026-12-02T02:43:23.594Z",
    "updatedAt": "2026-12-02T02:43:23.596Z",
    "email": "test@session.services",
    "firstName": "Jay",
    "lastName": "McMullen",
    "imageUrl": "https://assets.session.services/examples/avatar.jpg",
    "tenantId": "tnt_01jqpj2t2kfvmstt6f6tzkbaf2"
  }
}

Changes

    • breaking

      the firstName request property's minLength was increased from 0 to 1

    • breaking

      the lastName request property's minLength was increased from 0 to 1

    • breaking

      the imageUrl/anyOf[subschema #1] request property format changed from no format to uri