Skip to main content
PUT
/
api
/
users
/
{id}
curl --request PUT \
  --url https://api.harmonyforstaffing.com/api/users/123 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "firstName": "Jane",
    "lastName": "Smith",
    "email": "[email protected]",
    "phone": "+1-555-555-5555",
    "isActive": true
  }'
{
  "id": 123,
  "firstName": "Jane",
  "lastName": "Smith",
  "email": "[email protected]",
  "phone": "+1-555-555-5555",
  "isActive": true,
  "dateAdded": 1679253000
}
Update the details of an existing user.

Path Parameters

id
integer
required
ID of the user to update

Body Parameters

firstName
string
required
First name
lastName
string
required
Last name
email
string
required
Email address
phone
string
Phone number
isActive
boolean
Whether the user is active

Response

id
integer
The ID of the updated user
role
object
Role information
dateAdded
integer
Unix timestamp when the user was added
curl --request PUT \
  --url https://api.harmonyforstaffing.com/api/users/123 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "firstName": "Jane",
    "lastName": "Smith",
    "email": "[email protected]",
    "phone": "+1-555-555-5555",
    "isActive": true
  }'
{
  "id": 123,
  "firstName": "Jane",
  "lastName": "Smith",
  "email": "[email protected]",
  "phone": "+1-555-555-5555",
  "isActive": true,
  "dateAdded": 1679253000
}