| GET | /mobileb/smartspace | Gets a smartspace by Id or invalidates the request if the business user does not have active access. |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ThingId | query | string | Yes | Thing ID |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Version | form | integer | No | Api version |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Data | form | ThingViewExtended | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ImageUrl | form | string | No | |
| ThingType | form | ThingTypeBasicView | No | |
| ThingDefinition | form | ThingDefinitionView | No | |
| UserAccesses | form | List<UserAccessView> | No | |
| States | form | Dictionary<string, List<StateValueView>> | No | |
| Properties | form | Dictionary<string, string> | No | |
| ThingsByCategory | form | List<ThingCategoryView> | No | |
| Organization | form | OrganizationDto | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | Guid | No | |
| OrganizationId | form | Guid | No | |
| Name | form | string | No | |
| Order | form | int | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | Guid | No | |
| Name | form | string | No | |
| SysTypeName | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | Guid | No | |
| OrganizationId | form | Guid | No | |
| Name | form | string | No | |
| Description | form | string | No | |
| Properties | form | Dictionary<string, Object> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | Guid | No | |
| UserId | form | int | No | |
| BusinessUserId | form | int | No | |
| ValidFrom | form | DateTime | No | |
| ValidTo | form | DateTime? | No | |
| ActiveFrom | form | DateTime | No | |
| AccessCount | form | int? | No | |
| TicketNumber | form | string | No | |
| QueuePosition | form | int? | No | |
| CanEnterWithTicket | form | bool | No | |
| Permission | form | List<string> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Things | form | List<ThingViewExtended> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | Guid | No | |
| Name | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | Guid? | No | |
| Code | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /mobileb/smartspace HTTP/1.1 Host: api.4spaces.io Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
data:
{
imageUrl: String,
thingType:
{
id: 00000000000000000000000000000000,
name: String,
sysTypeName: String
},
thingDefinition:
{
id: 00000000000000000000000000000000,
organizationId: 00000000000000000000000000000000,
name: String,
description: String,
properties:
{
String: {}
}
},
userAccesses:
[
{
id: 00000000000000000000000000000000,
userId: 0,
businessUserId: 0,
validFrom: -62135596800000,
validTo: -62135596800000,
activeFrom: -62135596800000,
accessCount: 0,
ticketNumber: String,
queuePosition: 0,
canEnterWithTicket: False,
permission:
[
String
]
}
],
states:
{
String:
[
{
ts: -62135596800000,
value: String
}
]
},
properties:
{
String: String
},
thingsByCategory:
[
{
things:
[
{
imageUrl: String,
thingType:
{
id: 00000000000000000000000000000000,
name: String,
sysTypeName: String
},
thingDefinition:
{
id: 00000000000000000000000000000000,
organizationId: 00000000000000000000000000000000,
name: String,
description: String,
properties:
{
String: {}
}
},
userAccesses:
[
{
id: 00000000000000000000000000000000,
userId: 0,
businessUserId: 0,
validFrom: -62135596800000,
validTo: -62135596800000,
activeFrom: -62135596800000,
accessCount: 0,
ticketNumber: String,
queuePosition: 0,
canEnterWithTicket: False,
permission:
[
String
]
}
],
states:
{
String:
[
{
ts: -62135596800000,
value: String
}
]
},
properties:
{
String: String
},
thingsByCategory:
[
{
things:
[
{
imageUrl: String,
thingType:
{
id: 00000000000000000000000000000000,
name: String,
sysTypeName: String
},
thingDefinition:
{
id: 00000000000000000000000000000000,
organizationId: 00000000000000000000000000000000,
name: String,
description: String,
properties:
{
String: {}
}
},
userAccesses:
[
{
id: 00000000000000000000000000000000,
userId: 0,
businessUserId: 0,
validFrom: -62135596800000,
validTo: -62135596800000,
activeFrom: -62135596800000,
accessCount: 0,
ticketNumber: String,
queuePosition: 0,
canEnterWithTicket: False,
permission:
[
String
]
}
],
states:
{
String:
[
{
ts: -62135596800000,
value: String
}
]
},
properties:
{
String: String
},
thingsByCategory:
[
{
things:
[
{
}
],
id: 00000000000000000000000000000000,
name: String
}
],
organization:
{
id: 00000000000000000000000000000000,
code: String
},
id: 00000000000000000000000000000000,
organizationId: 00000000000000000000000000000000,
name: String,
order: 0
}
],
id: 00000000000000000000000000000000,
name: String
}
],
organization:
{
id: 00000000000000000000000000000000,
code: String
},
id: 00000000000000000000000000000000,
organizationId: 00000000000000000000000000000000,
name: String,
order: 0
}
],
id: 00000000000000000000000000000000,
name: String
}
],
organization:
{
id: 00000000000000000000000000000000,
code: String
},
id: 00000000000000000000000000000000,
organizationId: 00000000000000000000000000000000,
name: String,
order: 0
},
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}