Body
Required
-
Short human-readable Gateway identifier. Example: 'AB1D'
Maximum length is
10
. Format should match the following pattern:^[-_A-Za-z0-9]*$
. -
Indicate whether the Gateway is statically located. If so, then longitude and latitude are required.
-
Indicates whether the gateway should be registered. True - will register a new gateway (productName is required) False - indicates that the gateway has already been registered
-
Indicate whether to replace the existig Gateway, in the case where the Space is already linked to a Gateway
-
Latitude value of the coordinate. Example: 51.123
Minimum value is
-90
, maximum value is90
. -
Manufacturer identifier for the Gateway device. Example: 'e10fce301222e588e1d7482b'
Maximum length is
100
. Format should match the following pattern:^[-_A-Za-z0-9]*$
. -
Gateway identifier, which is a combination of manufacturer and deviceId. Example: 'sysLoco_e10fce301222e588e1d7482b'
Maximum length is
100
. Format should match the following pattern:^[-_A-Za-z0-9]*$
. -
Name of Gateway product. Example: 'HGD4'
Maximum length is
100
. Format should match the following pattern:^[a-zA-Z0-9!@#$&()\-
.+,/" ]*$`. -
Gateway manufacturer. Example: 'sysLoco'. If you want us to support a new manufacturer, please contact us at support@reelables.com
Values are
hpeAruba
,cassiaNetworks
,particle
,sysLoco
, orversa
. -
Longitude value of the coordinate. Example: -0.123
Minimum value is
-180
, maximum value is180
.
curl \
--request POST 'https://api.reelables.com/v1/spaces/{spaceId}/gateways' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--header "request-id: string" \
--data '{"shortId":"string","isStatic":true,"registerGateway":true,"replaceExistingGateway":true,"latitude":42.0,"rssiFilter":"FAR","deviceId":"string","gatewayId":"string","productName":"string","manufacturer":"hpeAruba","longitude":42.0}'
# Headers
request-id: string
# Payload
{
"shortId": "string",
"isStatic": true,
"registerGateway": true,
"replaceExistingGateway": true,
"latitude": 42.0,
"rssiFilter": "FAR",
"deviceId": "string",
"gatewayId": "string",
"productName": "string",
"manufacturer": "hpeAruba",
"longitude": 42.0
}
{
"numberAssetsInSpace": 42,
"name": "string",
"locations": {
"nextToken": "string",
"items": [
{
"lastSeenTimestamp": "2025-05-04T09:42:00Z",
"coordinate": {
"latitude": 42.0,
"accuracy": 42,
"longitude": 42.0
},
"address": {
"country": "string",
"road": "string",
"city": "string",
"district": "string",
"postalCode": "string",
"county": "string",
"state": "string"
},
"error": 42,
"timestamp": "2025-05-04T09:42:00Z"
}
]
},
"id": "string",
"createdOn": "2025-05-04T09:42:00Z",
"gateway": {
"shortId": "string",
"isStatic": true,
"latitude": 42.0,
"hasPendingCommands": true,
"rssiFilter": "FAR",
"deviceId": "string",
"gatewayId": "string",
"productName": "string",
"addedOn": "2025-05-04T09:42:00Z",
"manufacturer": "string",
"longitude": 42.0
},
"workspaceId": "string"
}
{
"errors": [
{
"code": "string",
"id": "string",
"detail": "string",
"title": "string",
"status": "string"
}
]
}
{
"errors": [
{
"code": "string",
"id": "string",
"detail": "string",
"title": "string",
"status": "string"
}
]
}
{
"errors": [
{
"code": "string",
"id": "string",
"detail": "string",
"title": "string",
"status": "string"
}
]
}
{
"errors": [
{
"code": "string",
"id": "string",
"detail": "string",
"title": "string",
"status": "string"
}
]
}