Update workforce member
Changed onUpdate a workforce member profile, role, department, or compliance metadata used for people-security controls.
Request
- Base URLhttps://api.trycomp.ai
- AuthAPI key in header X-API-Key
Path parameters
Member ID
Request body
Example request
{
"userId": "usr_abc123def456",
"role": "admin",
"department": "it",
"fleetDmLabelId": 123,
"jobTitle": "Software Engineer",
"name": "John Doe",
"email": "john@example.com",
"createdAt": "2024-01-15T00:00:00.000Z",
"backgroundCheckExemptReason": "other",
"backgroundCheckExemptJustification": "Contractor with existing background check on file from staffing agency."
}Response
Member updated successfully
Example response
{
"id": "mem_abc123def456",
"organizationId": "org_abc123def456",
"userId": "usr_abc123def456",
"role": "admin",
"createdAt": "2024-01-01T00:00:00Z",
"department": "it",
"isActive": true,
"user": {
"id": "usr_abc123def456",
"name": "John Doe",
"email": "john.doe@company.com",
"emailVerified": true,
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-15T00:00:00Z"
},
"backgroundCheckRequests": [
{
"id": "bcr_abc123def456",
"status": "invited"
}
]
}Changes
- info
added the non-success response with the status
- info
- breaking
removed the enum value
adminof the request property - breaking
removed the enum value
govof the request property - breaking
removed the enum value
hrof the request property - breaking
removed the enum value
itof the request property - breaking
removed the enum value
itsmof the request property - breaking
removed the enum value
noneof the request property - breaking
removed the enum value
qmsof the request property - warning
the
request property's maxLength was set to64 - info
removed the
adminenum value from theresponse property for the response status - info
removed the
govenum value from theresponse property for the response status - info
removed the
hrenum value from theresponse property for the response status - info
removed the
itenum value from theresponse property for the response status - info
removed the
itsmenum value from theresponse property for the response status - info
removed the
noneenum value from theresponse property for the response status - info
removed the
qmsenum value from theresponse property for the response status
- breaking