Update a user

POST /users/{user_id}

In addition to the default user fields, you can also update custom fields added via the vendor attributes or HivePress extensions.

Path parameters

  • user_id integer Required

    User ID.

application/json

Body

  • first_name string

    First name.

  • last_name string

    Last name.

  • description string

    Profile description.

Responses

  • 200
POST /users/{user_id}
curl \
 --request POST '/wp-json/hivepress/v1/users/{user_id}' \
 --header "Content-Type: application/json" \
 --data '{"first_name":"string","last_name":"string","description":"string"}'
Request examples
{
  "first_name": "string",
  "last_name": "string",
  "description": "string"
}