Update person
PATCH
/api/people/{id}
const url = 'http://localhost:3000/api/people/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PATCH', headers: {cookie: 'session=<session>', 'Content-Type': 'application/json'}, body: '{}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url http://localhost:3000/api/people/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Content-Type: application/json' \ --cookie session=<session> \ --data '{}'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string format: uuid
Request Body required
Section titled “Request Body required ” Media type application/json
Any subset of the person create body
object
Example generated
{}Responses
Section titled “ Responses ”Person updated
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" }}No fields to update
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"}Person not found
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"}