gateway - bind Devices

Bind devices to a gateway under a registry

POSThttps://api.korewireless.com/omnicore/subscriptions/{subscriptionId}/registries/{registryId}/bindDevicesToGateway
Path parameters
subscriptionId*string

Subscription ID

registryId*string

Registry ID

Body

application/json

deviceIds*array of string
gatewayId*string
Response

OK

Body
infostring
Request
const response = await fetch('https://api.korewireless.com/omnicore/subscriptions/{subscriptionId}/registries/{registryId}/bindDevicesToGateway', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "deviceIds": [
        "text"
      ],
      "gatewayId": "text"
    }),
});
const data = await response.json();
Response
{
  "info": "text"
}

Authorization: apiKey

name: x-api-key
in: header
type: apiKey
curl -L -X POST 'https://api.korewireless.com/omnicore/subscriptions/:subscriptionId/registries/:registryId/bindDevicesToGateway' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-H 'x-api-key: <API_KEY_VALUE>' \
--data-raw '{
  "deviceIds": [
    "string"
  ],
  "gatewayId": "string"
}'

Last updated