Account

Update the current user's profile

Updates the authenticated user's mutable profile fields (display_name, locale, analytics_opt_out) and returns the updated user.

patch/api/me

Request

  • Base URL: https://api.engram.page
  • URL: https://api.engram.page/api/me
  • Auth: HTTP bearer

Request body

analytics_opt_outboolean

true objects to product analytics and erases the user's PostHog person; false withdraws the objection

display_namestring nullable
localestring

BCP 47 language tag, stored in canonical casing

Example request

{
  "display_name": "Ada Lovelace",
  "locale": "en"
}

Response

Updated user

Example response

{
  "user": {
    "locale": "pt-BR",
    "role": "user"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.