Update user details
Update firstName, lastName, or entityId for a user. Supports moving users between entities within the hierarchy.
Path Parameters
- Type: stringFormat: uuididrequired
User ID
Body
required
application/json
- Type: stringFormat: uuidentity
Id Optional. Entity ID to move the user to. Must be within accessible hierarchy.
- Type: stringfirst
Name - Type: stringlast
Name
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
Request Example for put/users/{id}
curl https://api.gpcn.com/v1/users/123e4567-e89b-12d3-a456-426614174000 \
--request PUT \
--header 'Content-Type: application/json' \
--header 'X-API-Key: YOUR_SECRET_TOKEN' \
--data '{
"firstName": "",
"lastName": "",
"entityId": ""
}'
{
"success": true,
"message": "User updated successfully",
"data": null,
"meta": null
}.png)