Skip to main content
PATCH
/
api
/
v2
/
users
/
{user_id}
Update User
curl --request PATCH \
  --url https://api.example.com/api/v2/users/{user_id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "first_name": "<string>",
  "last_name": "<string>",
  "account_role": "Account User",
  "profile_picture": "<string>",
  "profile_color": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "email_address": "<string>",
  "first_name": "<string>",
  "last_name": "<string>",
  "account_role": "<string>",
  "profile_picture": "<string>",
  "profile_color": "<string>",
  "is_deleted": true
}

Path Parameters

user_id
string
required

Body

application/json
first_name
string | null
last_name
string | null
account_role
enum<string> | null
Available options:
Account User,
Account Admin,
Account Analyst,
Account Guest
profile_picture
string | null
profile_color
string | null

Response

200 - application/json

UserResponse(id: uuid.UUID, email_address: str, first_name: str, last_name: str, account_role: str, profile_picture: Optional[str], profile_color: Optional[str], is_deleted: bool)

id
string<uuid>
required
email_address
string
required
first_name
string
required
last_name
string
required
account_role
string
required
profile_picture
string | null
required
profile_color
string | null
required
is_deleted
boolean
required