| GET | /mobileb/keycodes/all | Gets a list of all key codes for all smartspaces that a mobile businiess user has access to. |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Version | form | integer | No | Api version |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Data | form | List<ThingKeyCodeView> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ThingId | form | Guid | No | |
| ThingName | form | string | No | |
| SmartspaceId | form | Guid? | No | |
| SmartspaceName | form | string | No | |
| KeyLockType | form | KeyLockType? | No | |
| AccessKeyCode | form | string | No | |
| AccessLevel | form | string | No |
| Name | Value |
|---|---|
| Unsupported | 0 |
| QRCode | 1 |
| RFID | 2 |
| KeyPad | 3 |
| NFC | 4 |
| Bluetooth | 5 |
| VirtualCard | 6 |
| AccessCard | 7 |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /mobileb/keycodes/all HTTP/1.1 Host: api.4spaces.io Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{Unable to show example output for type 'AllKeyCodesResponse' using the custom 'csv' filter}One or more errors occurred. (Unable to cast object of type 'ServiceStack.Host.BasicResponse' to type 'ServiceStack.Host.NetCore.NetCoreResponse'.)