Self
Update user details
Update the details of the user
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
Request body
Example request
{
"patch": [
{
"op": "replace",
"path": "first_name",
"value": "John"
},
{
"op": "replace",
"path": "last_name",
"value": "Cena"
},
{
"op": "replace",
"path": "password",
"value": {
"old_password": "<old-password>",
"new_password": "<new-password>",
"totp": "<otp-if-2fa-enabled>"
}
},
{
"op": "add",
"path": "mfa",
"value": ""
},
{
"op": "remove",
"path": "mfa",
"value": ""
}
]
}Response
Request fulfilled, document follows
Changes
No recorded changes to this operation across all 3 revisions of this API.