- A valid API key — see Obtain API credentials
- The
idof the user to update (for example,USER-3MtwBwLkdIwHu7ix28a3tqPa)
| Field | Description |
|---|---|
first_name | User's first name |
last_name | User's last name |
email | Email address (also the login username) |
phone | Phone number in E.164 format |
time_zone | IANA time zone |
Partial updates
Include only the fields you want to change. Fields you omit are left unchanged.
Send POST /v1/users/{id} with the fields to change.
curl -X POST \
https://api.dev.paradisegateway.net/v1/users/USER-3MtwBwLkdIwHu7ix28a3tqPa \
-H "Content-Type: application/json" \
-H "APIKEY: YOUR-API-KEY" \
-d '{
"first_name": "Jonathan",
"phone": "+15559999999",
"time_zone": "America/Los_Angeles"
}'A 200 response returns the full, updated user object.
{
"id": "USER-3MtwBwLkdIwHu7ix28a3tqPa",
"object": "user",
"first_name": "Jonathan",
"last_name": "Doe",
"email": "john.doe@example.com",
"phone": "+15559999999",
"time_zone": "America/Los_Angeles",
"is_mfa_active": false,
"is_active": true,
"is_locked": false,
"correlation_id": "d4e5f6a7-b8c9-0123-def0-1234567890ab"
}Updating email also changes the user's login username. Coordinate with the user before making this change so they know to use the new email at next login.
Email uniqueness
Each email address must be unique across all users. The API returns a 400 error if the email is already in use.