PATCH
/
users
curl --request PATCH \
  --url https://api.mudstack.com/users \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'body={}'
{
  "id": "<string>",
  "auth0UserID": "<string>",
  "username": "<string>",
  "email": "<string>",
  "firstName": "<string>",
  "lastName": "<string>",
  "avatar_file_id": "<string>",
  "defaultAvatar": 123,
  "industry": "<string>",
  "occupation": "<string>",
  "company": "<string>",
  "emailVerified": true,
  "isActive": true,
  "city": "<string>",
  "state": "<string>",
  "country": "<string>",
  "zipCode": "<string>",
  "invited_by_user": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
file
file
body
object

Response

200 - application/json
The updated user details.

User model

id
string

Unique identifier for the user

auth0UserID
string

Auth0 user ID

username
string

Username of the user

email
string

Email address of the user

firstName
string

First name of the user

lastName
string

Last name of the user

avatar_file_id
string

File ID of the user's avatar

defaultAvatar
number

Default avatar identifier

industry
string

Industry the user works in

occupation
string

Occupation of the user

company
string

Company the user works for

emailVerified
boolean

Whether the user's email is verified

isActive
boolean

Whether the user is active

city
string

City where the user resides

state
string

State where the user resides

country
string

Country where the user resides

zipCode
string

Zip code of the user's location

invited_by_user
object

User who invited this user