gateway - bind Device

Bind a device to a gateway under a registry

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

Subscription ID

registryId*string

Registry ID

Body

application/json

deviceId*string
gatewayId*string
Response

OK

Body
infostring
Request
const response = await fetch('https://api.korewireless.com/omnicore/subscriptions/{subscriptionId}/registries/{registryId}/bindDeviceToGateway', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "deviceId": "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/bindDeviceToGateway' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-H 'x-api-key: <API_KEY_VALUE>' \
--data-raw '{
  "deviceId": "string",
  "gatewayId": "string"
}'

Last updated