API ReferenceSpace
space.create
Type: Mutation · Auth: Workspace-aware
Input
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| siteId | string | Yes | — | ID of the associated site |
| parentSpaceId | string | No | — | ID of the associated parent space |
| spaceType | enum(building, floor, wing, room, closet, rack, parking_area, exterior, other) | Yes | — | Space type |
| name | string | Yes | — | Name |
| floor | string | No | — | Floor |
| roomNumber | string | No | — | Room number |
| description | string | No | — | Description |
| workspaceId | string | No | — | ID of the associated workspace |
| visibilityMode | enum(global, workspace_local, shared) | Yes | "workspace_local" | Visibility mode |
Example
{
"siteId": "550e8400-e29b-41d4-a716-446655440000",
"parentSpaceId": "550e8400-e29b-41d4-a716-446655440000",
"spaceType": "building",
"name": "Example Name",
"floor": "example",
"roomNumber": "example",
"visibilityMode": "global"
}