Update user details

Update firstName, lastName, or entityId for a user. Supports moving users between entities within the hierarchy.

Path Parameters
  • id
    Type: stringFormat: uuid
    required

    User ID

Body
required
application/json
  • entityId
    Type: stringFormat: uuid

    Optional. Entity ID to move the user to. Must be within accessible hierarchy.

  • firstName
    Type: string
  • lastName
    Type: string
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
}