curl -X PUT https://api.example.com/v1/users/{user_id} \
-H "x-api-key: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
  "email": "name@example.com",
  "first_name": "name",
  "last_name": "abc",
  "metadata": {}
}'


"User updated successfully"
Endpoint: PUT /v1/users/{user_id} This endpoint update an existing user’s information. It requires the user’s unique ID (user_id) to be passed in the request path, and the updated user details must be provided in the request body.

Parameters

user_id
string
required
The unique ID of the user whose details need to be updated.
email
string
required
The updated email address of the user
first_name
string
required
The updated first name of the user.
last_name
string
required
The updated last name of the user.
metadata
object
required
A JSON object containing any additional metadata or custom fields for the user.
Curl
curl -X PUT https://api.example.com/v1/users/{user_id} \
-H "x-api-key: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
  "email": "name@example.com",
  "first_name": "name",
  "last_name": "abc",
  "metadata": {}
}'


Python
import requests

url = "https://api.example.com/v1/users/{user_id}"
headers = {
    "x-api-key": "your_api_key_here",
    "Content-Type": "application/json"
}
data = {
    "email": "name@example.com",
    "first_name": "name",
    "last_name": "abc",
    "metadata": {}
}

response = requests.put(url, headers=headers, json=data)
"User updated successfully"