Skip to main content

Update User

Updates profile information for an existing user account.

Endpoint

PUT /v2/users

Request Body

FieldTypeRequiredConstraintsDescription
userIdintegerYesMust be an existing userID of the user to update
emailstringNoValid email formatUpdated email address
firstNamestringNoUpdated first name
lastNamestringNoUpdated last name
{
"userId": 1042,
"email": "john.smith@example.com",
"firstName": "John",
"lastName": "Smith"
}

Response

Returns the updated UserIDInfo object reflecting the saved changes.

{
"success": true,
"data": {
"userId": 1042,
"login": "jsmith",
"email": "john.smith@example.com",
"firstName": "John",
"lastName": "Smith",
"networkId": 1,
"mailboxId": 101,
"authLevel": "MailboxAdmin",
"status": "Active",
"created": "2024-03-15T10:22:00Z"
}
}

Code Examples

curl -X PUT "https://rest.ecgrid.io/v2/users" \
-H "X-API-Key: $ECGRID_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "userId": 1042, "email": "john.smith@example.com", "firstName": "John", "lastName": "Smith" }'

See Also