Skip to main content
POST
Create FloorPlanDesk
A FloorPlanDesk (referred to as a floor plan unit in the UI) represents a specific area or room placed on a floor plan. Each unit typically maps to a bookable resource or a space assigned to a customer through a contract. There are five unit types controlled by ItemType: Link a unit to a Resource via ResourceId to let customers book it through the floor plan view on the Members Portal. Assign it to one or more contracts via CoworkerContractIds to track occupancy. Units can be monitored by an IoT sensor (SensorId). The last sensor reading is exposed via SensorLastValue and IsSensorOccupied. Position and size on the canvas are maintained by the floor plan editor. AvailableFromTime / AvailableToTime allow time-bounded availability windows.

Authentication

This endpoint requires OAuth2 authentication. Include a valid bearer token in the Authorization header. The authenticated user must be a full unrestricted administrator or have the FloorPlanDesk-Create role.

Enums

Request Body

Required Fields

integer
required
ID of the floor plan this unit belongs to.
string
required
Display name of the floor plan unit (e.g. ‘Office 3’, ‘Hot Desk 12’).
integer
required
Type of area this unit represents: Office, DedicatedDesk, HotDesk, Room, or Other.
number
required
Floor area of this unit (e.g. in sq ft or sq m, depending on the location’s unit setting).
number
required
Number of people this unit can accommodate at the same time.
number
required
Indicative price displayed on the floor plan view (informational only; actual billing is handled by products and contracts).
integer
required
X coordinate of this unit’s position on the floor plan canvas.
integer
required
Y coordinate of this unit’s position on the floor plan canvas.
integer
required
Z-index (draw order) of this unit on the floor plan canvas; higher values render on top.

Optional Fields

integer
ID of the customer assigned to this unit (used for dedicated desks and offices).
integer
ID of the IoT sensor monitoring occupancy or environmental conditions in this unit.
integer
ID of the bookable resource linked to this unit, enabling customers to book it via the floor plan view.
boolean
When true, the Size value is automatically calculated from the drawn shape area on the floor plan canvas.
string
Computed area of the drawn shape on the floor plan canvas, set automatically by the editor.
string
Internal notes about this unit, visible to admins only.
boolean
Whether this unit is currently available for assignment or booking.
boolean
Whether this unit is available to any AI channels (Email, Chat or WhatsApp) for recommendations for private offices;.
string
Notes or instructions for AI channels to consider when recommending this unit for private offices (e.g. ‘great natural light but a bit noisy’).
boolean
Whether to show the price of this unit in AI channel recommendations and responses based on users’ budget preferences.
number
Override price to show in AI channel recommendations and responses based on users’ budget preferences (if not set, the regular Price value is used).
string
Access control group identifier that governs door/entry access for this unit.
string
Network tunnel group identifier for private network access scoped to this unit.
string
Comma-separated list of contract IDs currently assigned to this unit.
string
Comma-separated list of customer names from contracts assigned to this unit.
string
Comma-separated list of start dates for contracts assigned to this unit.
string
UTC date/time from which this unit becomes available.
string
UTC date/time until which this unit is available.
string
Local date/time from which this unit becomes available (derived from AvailableFromTime).
string
Local date/time until which this unit is available (derived from AvailableToTime).
string
Unique identifier linking this unit to its corresponding element in an Archilogic 3D model.
string
Unique identifier linking this unit to a component in the associated floor plan layout template.

Code Examples

Response

200

integer
HTTP status code. 200 on success.
string
A human-readable message confirming the creation.
object
Contains the Id of the newly created record.
boolean
true if the floorplandesk was created successfully.
array
null on success.
Example Response

400

string
A summary of the validation error(s), in the format PropertyName: error message.
any
null on validation failure.
object[]
Array of validation errors.
boolean
false when the request fails validation.
Example Response