WordPress Extended icon

WordPress Extended

WordPress REST API with Custom Post Types, ACF and Meta Fields

Actions17

User → Update

AI-generated

Summary

Updates an existing WordPress user by ID, allowing selective modification of profile fields.

Inputs

  • userId (required) — Unique identifier for the user to update.
  • updateFields — Collection of fields to modify. Accepts: Username, Name, First Name, Last Name, Email, Password, URL, Description, Nickname, Slug. Password is always excluded from the API request body.

Output shape

A list of items containing the updated user object (JSON response from WordPress).

Only provided fields are sent in the request body; unspecified fields remain unchanged.

Examples

Example 1: Change a user's email address.

Set 'User ID' to the target user's ID and enter the new email in 'Email' under 'Update Fields'.

Example 2: Update multiple fields at once.

Enter the User ID and populate multiple fields (e.g., Name, First Name, Last Name, URL) in the 'Update Fields' collection.

Links

Discussion