create Sink

Create a Sink

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

Subscription ID

Body
idstring
subscriptionstring
sinkenum
pubsub
configConfig (object)
statusboolean
createdonstring
updatedonstring
Response

OK

Headers
Body
idstring
subscriptionstring
sinkenum
pubsub
configConfig (object)
statusboolean
createdonstring
updatedonstring
Request
const response = await fetch('https://api.korewireless.com/omnicore/subscriptions/{subscriptionId}/sinks', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "id": "text",
  "subscription": "text",
  "sink": "pubsub",
  "config": {
    "connectionParameter": "text"
  },
  "status": false,
  "createdon": "text",
  "updatedon": "text"
}

Authorization: apiKey

name: x-api-key
in: header
type: apiKey
curl -L -X POST 'https://api.korewireless.com/omnicore/subscriptions/:subscriptionId/sinks' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-H 'x-api-key: <API_KEY_VALUE>' \
--data-raw '{
  "sink": "pubsub",
  "config": {
    "connectionParameter": "string"
  }
}'

Last updated