Update a user
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.
Body
-
first_name
string First name.
-
last_name
string Last name.
-
description
string Profile description.
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"
}