Units always belong to a project. All endpoints are scoped underDocumentation Index
Fetch the complete documentation index at: https://developers.flowestate.app/llms.txt
Use this file to discover all available pages before exploring further.
/projects/{projectId}/units.
List units
projects:read. Returns all units of the project. Returns 404 NOT_FOUND if the project doesn’t exist or belongs to another organization.
Response 200
Create a unit
projects:write.
Request body
| Field | Required | Notes |
|---|---|---|
name | yes | Free text, ≤ 255 chars. |
price | yes | Integer, in the project’s currency. |
type | no | Free text, ≤ 100 chars. |
area | no | Integer (square meters). |
status | no | available (default), reserved, sold. |
Response 201
Returns the created unit with all its fields.Webhook side effects
Aunit.created event is dispatched.
Update a unit
projects:write. Partial update. All fields optional, must provide at least one.
Request body
Same fields as create. Passnull to clear nullable fields, omit to leave untouched.
Response 200
Returns the updated unit.Webhook side effects
- Always:
unit.updated. - If
statuschanged:unit.status_changed. The payload includes both the unit and its parent project, so receivers don’t need a second API call to know what was sold.