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:
400validation,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:
400invalid payload,401,403policy. - Example:
POST /api/user/change-password.
✦
Need help understanding this?Ask CMS Assets Copilot about features, setup, or integrations.
Ask Copilot →