User API

PATCH /api/user/profile

  • Purpose: Partial update of the user profile.
  • Auth: Clerk session.
  • Request shape: Profile patch body (Zod schema in userSchemas).
  • Response shape: { ok } or updated profile model.
  • Key errors: 400 validation, 401.
  • Example: PATCH /api/user/profile.

POST /api/user/change-password

  • Purpose: Change password for the authenticated user.
  • Auth: Clerk session.
  • Request shape: Current/new password payload.
  • Response shape: { ok }.
  • Key errors: 400 invalid payload, 401, 403 policy.
  • Example: POST /api/user/change-password.
Need help understanding this?Ask CMS Assets Copilot about features, setup, or integrations.
Ask Copilot →