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.
Body
-
first_name string
First name.
-
last_name string
Last name.
-
description string
Profile description.
POST
/users/{user_id}
curl \
-X POST /wp-json/hivepress/v1/users/{user_id} \
-H "Content-Type: application/json" \
-d '{"first_name":"string","last_name":"string","description":"string"}'
Request example
{
"first_name": "string",
"last_name": "string",
"description": "string"
}
Request examples
{
"first_name": "string",
"last_name": "string",
"description": "string"
}