Body
Request for creating a new Family
-
First name of the Primary Contact to add to the Family
-
Last name of the Primary Contact of the Family (will also be the Family name)
-
Email address of the Primary Contact to add to the Family
-
Phone number of the Primary Contact to add to the Family
-
Whether we should also send an invitation to ClassManager to the Family
POST
/v1/families/
curl \
--request POST 'https://classmanager.test/v1/families/' \
--header "Content-Type: application/json" \
--data '{"firstname":"Harry","lastname":"Potter","email":"h.potter@hogwarts.co.uk","phone":"01234567890","sendInvite":true}'
Request examples
{
"firstname": "Harry",
"lastname": "Potter",
"email": "h.potter@hogwarts.co.uk",
"phone": "01234567890",
"sendInvite": true
}
Response examples (200)
{
"id": "fml_123123123123",
"companyId": "co_123123123123",
"name": "Potter",
"joinedAt": "2023-12-05",
"invitationStatus": "not_invited",
"profilePicture": "https://",
"deletedAt": "2023-12-05 14:30:41",
"archivedAt": "2023-12-05 14:30:41",
"createdAt": "2023-12-05 14:30:41"
}
Response examples (403)
{
"statusCode": 42.0,
"messages": [
"string"
],
"exception": {}
}
Response examples (422)
{
"statusCode": 42.0,
"messages": [
"string"
],
"exception": {}
}