Skip to main content
POST
/
api
/
users
curl --request POST \
  --url https://api.harmonyforstaffing.com/api/users \
  --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
}
Create a new user in the system.

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 created user
role
object
Role information
dateAdded
integer
Unix timestamp when the user was added
curl --request POST \
  --url https://api.harmonyforstaffing.com/api/users \
  --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
}