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.
- Use this URL to add a singleton configuration element.
https://CNSBCIP/config/<version>/<topic>/<configElement>
- 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.
- Use this URL to add a multi-instance configuration element.
https://CNSBCIP/config/<version>/<topic>/<configElement>
- Use this URL to add a sub-element of a multi-instance configuration element.
https://CNSBCIP/config/<version>/<topic>/<configElement>/<configElementKey>/<subElement>
- 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).