Create person
POST
/api/people
const url = 'http://localhost:3000/api/people';const options = { method: 'POST', headers: {cookie: 'session=<session>', 'Content-Type': 'application/json'}, body: '{"fullName":"example","email":"hello@example.com","phone":"example","jobTitle":"example","department":"example","employeeId":"example","siteId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","profileId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","status":"active","startDate":"2026-04-15","notes":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3000/api/people \ --header 'Content-Type: application/json' \ --cookie session=<session> \ --data '{ "fullName": "example", "email": "hello@example.com", "phone": "example", "jobTitle": "example", "department": "example", "employeeId": "example", "siteId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "profileId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "status": "active", "startDate": "2026-04-15", "notes": "example" }'Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
object
fullName
required
string
email
Unique
string format: email
phone
string
jobTitle
string
department
string
employeeId
string
siteId
string format: uuid
profileId
Link to a login profile (unique)
string format: uuid
status
string
startDate
string format: date
notes
string
Responses
Section titled “ Responses ”Person created
Media type application/json
object
data
object
id
required
string format: uuid
fullName
required
string
email
string
phone
string
jobTitle
string
department
string
employeeId
string
siteId
string format: uuid
siteName
string
profileId
string format: uuid
status
required
string
startDate
string format: date
notes
string
profile
object
id
string format: uuid
email
string
role
string
isActive
boolean
assetCount
Open assignments (list endpoint)
integer
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
Example
{ "data": { "status": "active" }}Full name is required
Media type application/json
object
error
required
string
Example
{ "error": "Not found"}Not authenticated
Media type application/json
object
error
required
string
Example
{ "error": "Not found"}Email or profile already linked to another person
Media type application/json
object
error
required
string
Example
{ "error": "Not found"}