POST
/v1/staff/
curl \
--request POST 'https://api-dev.classmanager.io/v1/staff/' \
--header "Content-Type: application/json" \
--data '{"firstname":"John","lastname":"Doe","email":"john@example.com","sendInvite":true,"permissionSet":"owner","jobTitle":"Dance teacher","joinedAt":"2024-01-01","phone":"+13124567890"}'
Request examples
{
"firstname": "John",
"lastname": "Doe",
"email": "john@example.com",
"sendInvite": true,
"permissionSet": "owner",
"jobTitle": "Dance teacher",
"joinedAt": "2024-01-01",
"phone": "+13124567890"
}
Response examples (200)
{
"id": "stf_123123123123",
"companyId": "co_123123123123",
"firstname": "John",
"lastname": "Doe",
"email": "john@example.com",
"phone": "(123) 456 7890",
"permissionSet": "family",
"jobTitle": "Teacher",
"invitationStatus": "not_invited",
"archivedAt": "2023-12-05 14:30:41",
"deletedAt": "2023-12-05 14:30:41",
"joinedAt": "2023-12-05",
"createdAt": "2023-12-05 14:30:41",
"profilePicture": "https://"
}
Response examples (403)
{
"statusCode": 42.0,
"messages": [
"string"
],
"exception": {}
}
Response examples (422)
{
"statusCode": 42.0,
"messages": [
"string"
],
"exception": {}
}