Creating a resource

To create an element, you need the associated element entry-point to execute a POST on it.

The API documentation describes all attributes that are needed for constructing elements in JSON or XML.

Example: For a host, the POST 7.1/elements/host REST call returns a 201 HTTP response status code and the created element API's URI in the HTTP header:
{
    "name": "myHost",
    "address": "192.168.0.1"
}
Tip: The Content-Type HTTP request header determines the input format (XML or JSON).