create Registry

Create a registry

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

Subscription ID

Body

application/json

id*string
namestring
parentstring
createdOnstring
updatedOnstring
credentialsarray of RegistryCredential (object)
httpConfigHttpConfig (object)
mqttConfigMqttConfig (object)
logLevelLogLevel (enum)
INFOERROR
isNatsRouteboolean
eventNotificationConfigsarray of EventNotificationConfig (object)
logNotificationConfigNotificationConfig (object)
stateNotificationConfigNotificationConfig (object)
customOnboardNotificationConfigNotificationConfig (object)
customOnboardEnabledboolean
numberOfDevicesinteger
numberOfGatewaysinteger
Response

OK

Body
id*string
namestring
parentstring
createdOnstring
updatedOnstring
credentialsarray of RegistryCredential (object)
httpConfigHttpConfig (object)
mqttConfigMqttConfig (object)
logLevelLogLevel (enum)
INFOERROR
isNatsRouteboolean
eventNotificationConfigsarray of EventNotificationConfig (object)
logNotificationConfigNotificationConfig (object)
stateNotificationConfigNotificationConfig (object)
customOnboardNotificationConfigNotificationConfig (object)
customOnboardEnabledboolean
numberOfDevicesinteger
numberOfGatewaysinteger
Request
const response = await fetch('https://api.korewireless.com/omnicore/subscriptions/{subscriptionId}/registries', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "id": "text"
    }),
});
const data = await response.json();
Response
{
  "id": "text",
  "name": "text",
  "parent": "text",
  "createdOn": "text",
  "updatedOn": "text",
  "credentials": [
    {
      "publicKeyCertificate": {
        "certificate": "text",
        "format": "X509_CERTIFICATE_PEM",
        "x509Details": {
          "expiryTime": "text",
          "issuer": "text",
          "publicKeyType": "text",
          "signatureAlgorithm": "text",
          "startTime": "text",
          "subject": "text"
        }
      },
      "id": "text"
    }
  ],
  "httpConfig": {
    "httpEnabledState": "HTTP_ENABLED"
  },
  "mqttConfig": {
    "mqttEnabledState": "MQTT_ENABLED"
  },
  "logLevel": "INFO",
  "isNatsRoute": false,
  "eventNotificationConfigs": [
    {
      "pubsubTopicName": "text",
      "subfolderMatches": "text"
    }
  ],
  "logNotificationConfig": {
    "pubsubTopicName": "text"
  },
  "stateNotificationConfig": {
    "pubsubTopicName": "text"
  },
  "customOnboardNotificationConfig": {
    "pubsubTopicName": "text"
  },
  "customOnboardEnabled": false
}

Authorization: apiKey

name: x-api-key
in: header
type: apiKey
curl -L -X POST 'https://api.korewireless.com/omnicore/subscriptions/:subscriptionId/registries' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-H 'x-api-key: <API_KEY_VALUE>' \
--data-raw '{
  "id": "string",
  "credentials": [
    {
      "publicKeyCertificate": {
        "certificate": "string",
        "format": "X509_CERTIFICATE_PEM",
        "x509Details": {
          "expiryTime": "string",
          "issuer": "string",
          "publicKeyType": "string",
          "signatureAlgorithm": "string",
          "startTime": "string",
          "subject": "string"
        }
      }
    }
  ],
  "httpConfig": {
    "httpEnabledState": "HTTP_ENABLED"
  },
  "mqttConfig": {
    "mqttEnabledState": "MQTT_ENABLED"
  },
  "logLevel": "INFO",
  "eventNotificationConfigs": [
    {
      "pubsubTopicName": "string",
      "subfolderMatches": "string"
    }
  ],
  "logNotificationConfig": {
    "pubsubTopicName": "string"
  },
  "stateNotificationConfig": {
    "pubsubTopicName": "string"
  },
  "customOnboardNotificationConfig": {
    "pubsubTopicName": "string"
  },
  "customOnboardEnabled": true
}'

Last updated