Help

List spaces.

List spaces.

GET
/spaces

Authorization

bearerAuth
AuthorizationBearer <token>

Access token from POST /directory/connect/token. Scope olifyapi.

In: header

Query Parameters

$search?string
$filter?string
$orderby?string
$select?string
$expand?string
$count?boolean
$top?integer

Page size. Host OData:MaxTop is 10000.

Range0 <= value <= 10000
$skip?integer
Range0 <= value

Header Parameters

Olify-Tenant-Id*string

Tenant GUID the caller is allowed to access.

Formatuuid

Response Body

Space

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/spaces" \  -H "Olify-Tenant-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "value": [    {      "note": "string",      "locality": {        "region": {          "code": "string",          "name": "string",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"        },        "customer": {          "roles": [            "Manufacturer"          ],          "identificationNumber": "string",          "emailAddress": "string",          "phoneNumber": "string",          "address": {            "streetAddress1": "string",            "streetAddress2": "string",            "streetAddress3": "string",            "city": "string",            "cityDistrict": "string",            "postalCode": "string",            "coordinates": {              "latitude": "string",              "longitude": "string"            },            "countryCode": "string"          },          "extensionValues": {},          "name": "string",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"        },        "code": "string",        "name": "string",        "note": "string",        "address": {          "streetAddress1": "string",          "streetAddress2": "string",          "streetAddress3": "string",          "city": "string",          "cityDistrict": "string",          "postalCode": "string",          "coordinates": {            "latitude": "string",            "longitude": "string"          },          "countryCode": "string"        },        "levelEntityCategoryId": "32f29979-b26a-4b9a-aa34-af49e6995ee1",        "levelEntityCategory": {          "code": "string",          "name": "string",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"        },        "extensionValues": {},        "creationDate": "2019-08-24T14:15:22Z",        "lastChangeDate": "2019-08-24T14:15:22Z",        "classId": "f0846d40-4884-40d5-8fc5-9f2c5ef371c4",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"      },      "levelEntity": {        "code": "string",        "name": "string",        "note": "string",        "address": {          "streetAddress1": "string",          "streetAddress2": "string",          "streetAddress3": "string",          "city": "string",          "cityDistrict": "string",          "postalCode": "string",          "coordinates": {            "latitude": "string",            "longitude": "string"          },          "countryCode": "string"        },        "levelEntityCategoryId": "32f29979-b26a-4b9a-aa34-af49e6995ee1",        "levelEntityCategory": {          "code": "string",          "name": "string",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"        },        "extensionValues": {},        "creationDate": "2019-08-24T14:15:22Z",        "lastChangeDate": "2019-08-24T14:15:22Z",        "classId": "f0846d40-4884-40d5-8fc5-9f2c5ef371c4",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"      },      "level": {        "name": "string",        "abbreviation": "string",        "order": "string",        "levelEntityId": "61a942e1-60ef-4aab-ac7c-da59bfb99a0c",        "levelEntityName": "string",        "levelEntityCode": "string",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"      },      "spaceUsage": {        "code": "string",        "name": "string",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"      },      "spaceCategory": {        "code": "string",        "name": "string",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"      },      "occupantCompany": {        "name": "string",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"      },      "imageDocumentId": "1f33723c-e634-4c59-ba94-665409ba975b",      "bimImageId": "d9dd108a-72b3-4edb-84c4-76588e0fb993",      "creationDate": "2019-08-24T14:15:22Z",      "lastChangeDate": "2019-08-24T14:15:22Z",      "code": "string",      "name": "string",      "area": "string",      "localityId": "9b71895f-8a69-4102-a04b-0d26c0eb6f9d",      "levelEntityId": "61a942e1-60ef-4aab-ac7c-da59bfb99a0c",      "levelId": "a70368c7-b12e-43a9-9830-ab2485710b95",      "levelOrder": "string",      "spaceCategoryId": "809d6029-69b4-43c2-a738-11abe5eaf804",      "spaceUsageId": "d6520f10-7407-4215-bcb1-1c0a4f626f2a",      "locationType": "BuildingSpace",      "spaceOccupancyType": "Common",      "commonCostAllocationBasis": "Building",      "doorNumber": "string",      "extensionValues": {},      "classId": "f0846d40-4884-40d5-8fc5-9f2c5ef371c4",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"    }  ],  "count": 0}