{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/bindbee/main/json-schema/bindbee-departments-response-schema.json",
  "title": "PaginatedResponse[AtsDepartment]",
  "x-provenance": {
    "generated": "2026-09-04",
    "method": "derived",
    "source": "openapi/_original/bindbee-openapi.json",
    "source_url": "https://api.bindbee.dev/openapi.json",
    "note": "Extracted verbatim from the provider-published contract, with $refs rewritten from #/components/schemas to #/$defs. Replaces a scaffold whose envelope (data/next_cursor/has_more) does not exist in the Bindbee API \u2014 the real one is cursor/page_size/items."
  },
  "properties": {
    "cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cursor",
      "description": "Cursor value to fetch next set of items",
      "examples": [
        "MDE4YjE4ZWYtYzk5Yy03YTg2LTk5NDYtN2I3YzlkNTQzM2U1"
      ]
    },
    "page_size": {
      "type": "integer",
      "title": "Page Size",
      "description": "Indicates the count of items in the response",
      "examples": [
        50
      ]
    },
    "items": {
      "items": {
        "$ref": "#/$defs/AtsDepartment"
      },
      "type": "array",
      "title": "Items",
      "description": "List of items in the current response"
    }
  },
  "type": "object",
  "required": [
    "cursor",
    "page_size",
    "items"
  ],
  "$defs": {
    "AtsDepartment": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id",
          "examples": [
            "018b18ef-c487-703c-afd9-0ca478ccd9d6"
          ]
        },
        "remote_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Remote Id",
          "description": "The third-party API ID of the matching object.",
          "examples": [
            "123321"
          ]
        },
        "modified_at": {
          "type": "string",
          "format": "date-time",
          "title": "Modified At",
          "description": "This is the datetime that this object was last updated by Bindbee",
          "examples": [
            "2021-10-16T00:00:00Z"
          ]
        },
        "raw_data": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Raw Data",
          "description": "This is the Raw data",
          "examples": [
            {
              "key_1": "Platform dependent data 1",
              "key_2": "Platform dependent data 2"
            }
          ]
        },
        "custom_fields": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Custom Fields",
          "description": "The custom fields related to the model",
          "examples": [
            {
              "category_group": "REG",
              "disability_type": "ASBERG",
              "hire_date": "1991-03-16T00:00:00",
              "hire_source": "REFER",
              "nationality": "USA",
              "original_hire_date": "1991-03-16T00:00:00"
            }
          ]
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Name",
          "description": "The name of the department.",
          "examples": [
            "Engineering"
          ]
        }
      },
      "type": "object",
      "required": [
        "id",
        "remote_id",
        "modified_at",
        "custom_fields",
        "name"
      ],
      "title": "AtsDepartment",
      "description": "The AtsDepartment object represents a department within the company in the ATS."
    }
  }
}