/population-types/{population-type}/area-types/{area-type}/parents

GET

Parameters

Name Type Description
population-type path
area-type path
limit query Limit the number of items that will be returned. Defaults to 20 and capped at 500
offset query Starting index of the items array that will be returned. By default it is zero, meaning that the returned items will start from the beginning.

Responses

200: parent area types returned successfully

Example value
{
  "description": "The response body containing all available area-types for a given population-type",
  "properties": {
    "count": {
      "description": "The number of area-types returned",
      "type": "integer",
      "readOnly": true
    },
    "items": {
      "description": "An array of area-types",
      "type": "array",
      "items": {
        "properties": {
          "description": {
            "type": "string",
            "example": "National code definition for Census 2021"
          },
          "id": {
            "type": "string",
            "example": "NATCD"
          },
          "label": {
            "type": "string",
            "example": "National code"
          },
          "total_count": {
            "type": "integer",
            "example": "2"
          }
        }
      }
    },
    "limit": {
      "description": "The number of area-types requested",
      "type": "integer"
    },
    "offset": {
      "description": "The first row of area-types for to retrieve, starting at 0. Use this parameter as a pagination mechanism along with the limit parameter",
      "type": "integer"
    },
    "total_count": {
      "description": "The total number of area-types",
      "type": "integer",
      "readOnly": true
    }
  }
}