{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/culture-amp/json-schema/culture-amp-survey-sections-response-schema.json",
  "title": "SurveySectionsResponse",
  "description": "container object for multiple Sections",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/culture-amp-surveys-api-openapi.yml#/components/schemas/SurveySectionsResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SurveySection"
      }
    },
    "pagination": {
      "$ref": "#/$defs/PaginationV2"
    }
  },
  "$defs": {
    "PaginationV2": {
      "title": "Pagination",
      "type": "object",
      "properties": {
        "nextPath": {
          "type": "string",
          "description": "the relative url for the next page of data"
        }
      }
    },
    "SurveySection": {
      "title": "SurveySection",
      "type": "object",
      "description": "A section is a grouping of questions in a survey",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier for this section."
        },
        "name": {
          "type": "string",
          "description": "Name of this section"
        },
        "type": {
          "type": "string",
          "description": "Defines the type category of the section, including how it will display to respondents"
        },
        "code": {
          "type": "string",
          "description": "Auto-generated code for the section"
        },
        "shortDescription": {
          "type": "string",
          "description": "Short text label which describes the section"
        },
        "longDescription": {
          "type": "string",
          "description": "Long text label which describes the section"
        },
        "status": {
          "type": "string",
          "description": "Whether the section is active or deleted"
        },
        "order": {
          "type": "integer",
          "description": "Order of the section as configured in the survey",
          "format": "int32"
        },
        "createdAt": {
          "type": "string",
          "description": "When this section was created",
          "format": "date-time"
        },
        "updatedAt": {
          "type": "string",
          "description": "When this Section was last updated",
          "format": "date-time"
        }
      }
    }
  }
}