---
title: "Update user details"
method: PATCH
path: "/self"
tags: ["Self"]
---

# Update user details

`PATCH /self`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/self`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-KEY` and API key in header `X-API-SECRET` and API key in header `X-WORKSPACE-ID`

Update the details of the user

## Request body

- SelfPatch: Update/change user roles in the workspace
  - `patch` SelfPatchData[], required
    - `op` 'replace' | 'add' | 'remove', required: Operation to be performed on the user
    - `path` 'first_name' | 'last_name' | 'password' | 'mfa', required: Path of the patch request
    - `value` union: Value of the patch request
      - string
      - object

## Response `200`

Request fulfilled, document follows

## Other responses

- `400`: Bad request syntax or unsupported method
- `403`: Request forbidden -- authorization will not help

---

[API](https://skmtc.dev/mammoth/apis/mammoth-analytics.md) · [All operations](https://skmtc.dev/mammoth/apis/mammoth-analytics/llms.txt) · [OpenAPI document](https://skmtc.dev/mammoth/apis/mammoth-analytics/revisions/5dfd1c296ded?raw)
