> ## Documentation Index > Fetch the complete documentation index at: https://www.bloxs.io/llms.txt > Use this file to discover all available pages before exploring further. # Get a list of categories > Get a list of existing categories. ## OpenAPI ````json GET /api/v1/realestateobjects/units/categories { "openapi": "3.0.4", "info": { "title": "RealEstateObjects V1", "description": "Welcome to BETA version of the new RealEstateObjects API - intended for client public testing before the launch of the final version. During this BETA phase, we'll be improving the API based on specific client's feedbacks.", "version": "v1" }, "security": [ {} ], "tags": [ { "name": "Admin" }, { "name": "Buildings" }, { "name": "Complexes" }, { "name": "Generic" }, { "name": "Metadata" }, { "name": "PublishObjects" }, { "name": "ScoringPointTotals" }, { "name": "Sections" }, { "name": "Units" } ], "paths": { "/api/v1/realestateobjects/units/categories": { "get": { "tags": [ "Units" ], "summary": "Get a list of categories", "description": "Get a list of existing categories.", "operationId": "GetUnitCategories", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RentableObjectCategoryAPIModel" } } } } } }, "x-d360-narrative-url": "

Get a list of categories

This endpoint retrieves the list of categories available for units.

A category describes the type of a unit and indicates its purpose, and determines the unit's divisibility rules.

Integrators call this endpoint before inserting or updating a unit, to know which category values are currently configured, since the list is managed in the Bloxs application and can change over time.


Request Fields

This endpoint takes no request parameters.


Response Fields

Field

Type

Required

Description

category

string

No

Name of the category, for example house, office, or shop. Category values are configurable in the Bloxs application and cannot be managed through the API.

divisibleType

integer

No

Divisibility rule tied to this category. Valid values are 1 (SingleUnit), 2 (DivisibleByUnits), or 3 (DivisibleByFloorArea).

" } } }, "components": { "schemas": { "RentableObjectCategoryAPIModel": { "type": "object", "properties": { "category": { "type": "string", "nullable": true }, "divisibleType": { "type": "integer", "description": "SingleUnit = 1\nDivisibleByUnits = 2\nDivisibleByFloorArea = 3", "format": "int32", "nullable": true, "x-enumNames": [ "SingleUnit", "DivisibleByUnits", "DivisibleByFloorArea" ] } }, "additionalProperties": false } } } } ````