Skip to content
API reference

Unit types

Kinds of home in a project.

PATCH/unit-types/{id}

Change a unit type

Needs the permission projects:update.

ParameterInTypeNotes
id requiredpathstring (uuid)
Body fieldTypeNotes
namestringat least 1 characters. up to 120 characters
propertyTypeone of apartment, villa, townhouse, penthouse, office, retail, plot, other
bedroomsinteger or null
bathroomsinteger or null
areaSqftnumber or null
carpetAreaSqftnumber or null
basePricenumberat least 0. up to 10000000000000
totalUnitsintegerat least 0. up to 100000
descriptionstring or null
curl -X PATCH https://crm.anibrosdesign.com/api/v1/unit-types/{id} \
  -H "Authorization: Bearer crm_live_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"name":"text","propertyType":"apartment","bedrooms":0}'

Responses: 200 400 401 402 403 404 412 429

DELETE/unit-types/{id}

Delete a unit type

Needs the permission projects:update.

ParameterInTypeNotes
id requiredpathstring (uuid)
curl -X DELETE https://crm.anibrosdesign.com/api/v1/unit-types/{id} \
  -H "Authorization: Bearer crm_live_xxxxxxxx"

Responses: 204 400 401 402 403 404 429

GET/unit-types/{id}/interested

Get interested (unit types)

Needs the permission projects:read.

ParameterInTypeNotes
id requiredpathstring (uuid)
curl -X GET https://crm.anibrosdesign.com/api/v1/unit-types/{id}/interested \
  -H "Authorization: Bearer crm_live_xxxxxxxx"

Responses: 200 400 401 403 404 429

POST/unit-types/{id}/units

Units (unit types)

Needs the permission properties:create.

ParameterInTypeNotes
id requiredpathstring (uuid)
Idempotency-KeyheaderstringAny unique string up to 128 characters. Repeating the request with the same key returns the first response. up to 128 characters
Body fieldTypeNotes
countintegerat least 1. up to 500
unitPrefixstringup to 20 characters
startAtintegerat least 1. up to 100000
towerstring or null
facingslist of stringup to 50 items
floorFromintegerat least -5. up to 200
floorTointegerat least -5. up to 200
perFloorintegerat least 1. up to 50
curl -X POST https://crm.anibrosdesign.com/api/v1/unit-types/{id}/units \
  -H "Authorization: Bearer crm_live_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"count":1,"unitPrefix":"text","startAt":1}'

Responses: 201 400 401 402 403 404 429

Something missing or unclear? Tell us.

Chat on WhatsApp