POST /v1/families/{id}/archive

Archive Family

Path parameters

  • id string Required

    Family id

Responses

  • 403 application/json

    Not authorized

    Hide response attributes Show response attributes object

    Error schema

    • statusCode number Required

      Status Code

    • messages array[string] Required

      List of error messages

    • exception object

      Exception

  • 404 application/json

    Not found

    Hide response attributes Show response attributes object

    Error schema

    • statusCode number Required

      Status Code

    • messages array[string] Required

      List of error messages

    • exception object

      Exception

  • 200 application/json

    successful operation

    Hide response attributes Show response attributes object
    • id string Required

      id

    • companyId string Required

      Company ID

    • name string Required

      Name

    • joinedAt string(date) | null Required

      Joined at date

    • invitationStatus string Required

      Values are not_invited, invited, or accepted.

    • profilePicture string | null Required

      Profile Picture

    • deletedAt string(date-time) | null Required

      Deleted at date

    • archivedAt string(date-time) | null Required

      Archived at date

    • createdAt string(date-time) Required

      Created at date

POST /v1/families/{id}/archive
curl \
 --request POST 'https://api-dev.classmanager.io/v1/families/fml_xxxxxxxx/archive'
Response examples (403)
{
  "statusCode": 42.0,
  "messages": [
    "string"
  ],
  "exception": {}
}
Response examples (404)
{
  "statusCode": 42.0,
  "messages": [
    "string"
  ],
  "exception": {}
}
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"
}