Adding Elements

The following examples show how to add a configuration element by submitting a POST request.

Prerequisite:
  • Create the JSON request body with values in the mandatory attributes in the configuration element.
  1. Use this URL to add a singleton configuration element.
    https://CNSBCIP/config/<version>/<topic>/<configElement>
  2. Use this URL to add a sub-element of a singleton configuration element.
    https://CNSBCIP/config/<version>/<topic>/<configElement>/<subElement>

    Note:

    Retrieve the configuration element's key using a GET request.
  3. Use this URL to add a multi-instance configuration element.
    https://CNSBCIP/config/<version>/<topic>/<configElement>
  4. Use this URL to add a sub-element of a multi-instance configuration element.
    https://CNSBCIP/config/<version>/<topic>/<configElement>/<configElementKey>/<subElement>
  5. Use this URL to activate the configuration.
    https://CNSBCIP/config/<version>/activate

    Note:

    The mandatory attributes for a configuration element are marked as required in the REST API. For example - In realm-config, the mandatory attribute is denoted as identifier(required).