POST /v1/students/{id}/archive

Archive Student

Path parameters

  • id string Required

    Student 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

    • familyId string Required

      Family ID

    • firstname string Required

      Firstname

    • lastname string Required

      Lastname

    • gender string Required

      Values are male, female, non-binary, prefer-not-to-say, or other.

    • dateOfBirth string(date) | null Required

      Date of birth

    • mediaConsent boolean Required

      Photo & Video Consent

    • medicalInfo string | null Required

      Medical Info

    • profilePicture string | null Required

      Profile Picture

    • discountable boolean Required

      Discountable

    • joinedAt string(date) | null Required

      Join date

    • 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/students/{id}/archive
curl \
 --request POST 'https://api.classmanager.io/v1/students/stu_xxxxxxxx/archive'
Response examples (403)
{
  "statusCode": 42.0,
  "messages": [
    "string"
  ],
  "exception": {}
}
Response examples (404)
{
  "statusCode": 42.0,
  "messages": [
    "string"
  ],
  "exception": {}
}
Response examples (200)
{
  "id": "stn_123123123123",
  "companyId": "co_123123123123",
  "familyId": "fml_123123123123",
  "firstname": "John",
  "lastname": "Doe",
  "gender": "male",
  "dateOfBirth": "2010-12-05",
  "mediaConsent": "Not enabled",
  "medicalInfo": "Medical Info",
  "profilePicture": "https://",
  "discountable": "1",
  "joinedAt": "2023-10-05",
  "deletedAt": "2023-12-05 14:30:41",
  "archivedAt": "2023-12-05 14:30:41",
  "createdAt": "2023-12-05 14:30:41"
}