Create a new member
Changed onAdds a new member to the authenticated organization. The user must already exist in the system.
Request
- Base URLhttps://api.trycomp.ai
- AuthAPI key in header X-API-Key
Request body
Example request
{
"userId": "usr_abc123def456",
"role": "admin",
"department": "it",
"isActive": true,
"fleetDmLabelId": 123,
"jobTitle": "Software Engineer"
}Response
Member created 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
- 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
- breaking
request property
was restricted to a list of enum values - warning
added the new
adminenum value to theresponse property for the response status - warning
added the new
govenum value to theresponse property for the response status - warning
added the new
hrenum value to theresponse property for the response status - warning
added the new
itenum value to theresponse property for the response status - warning
added the new
itsmenum value to theresponse property for the response status - warning
added the new
noneenum value to theresponse property for the response status - warning
added the new
qmsenum value to theresponse property for the response status - info
added the new
adminenum value to the request property - info
added the new
govenum value to the request property - info
added the new
hrenum value to the request property - info
added the new
itenum value to the request property - info
added the new
itsmenum value to the request property - info
added the new
noneenum value to the request property - info
added the new
qmsenum value to the request property
- breaking