GET /v1/custom-field-responses/

Get custom field responses for entity

Query parameters

  • entityId string Required

    Entity 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 attribute Show response attribute object
    • fields array[object] Required

      List of responses for specific entity

      CustomFieldResponse schema

      Hide fields attributes Show fields attributes object
      • customField object Required

        CustomField schema

        Hide customField attributes Show customField attributes object
        • id string Required

          id

        • companyId string Required

          Company ID

        • type string Required

          Values are text, textarea, number, select, multiselect, date, or bool.

        • title string Required

          Title

        • entity string Required

          Values are staff, student, or family.

        • options array[string] | null Required

          Options

      • value Required

        Value

GET /v1/custom-field-responses/
curl \
 --request GET 'https://classmanager.test/v1/custom-field-responses/?entityId=stf_xxxxxxxx&entityId=std_xxxxxxxx'
Response examples (403)
{
  "statusCode": 42.0,
  "messages": [
    "string"
  ],
  "exception": {}
}
Response examples (404)
{
  "statusCode": 42.0,
  "messages": [
    "string"
  ],
  "exception": {}
}
Response examples (200)
{
  "fields": [
    {
      "value": "answer1",
      "customField": {
        "id": "cf_123123123123",
        "type": "select",
        "title": "Custom Field Title",
        "options": [
          "answer1",
          "answer2"
        ],
        "companyId": "co_123123123123"
      }
    }
  ]
}