Using the API to Create a New Product Name
When a configuration manager registers a new product, the name of this product gets filled out automatically in the Name field when its brand, model and category are specified. The REST API for products now provides the same helpful feature.
When this API is used to create a new product, only the brand, model and category need to be specified. The API then uses these details to automatically generate a name for the product.
Here’s an example of a CURL command for creating a new product in the Xurrent CMDB:
curl -u “api-token:x” -X POST -H “X-Xurrent-Account: wna-it” -d ‘{“brand”:”Dell”, “model”:”Precision M4400″, “category”:”computer/laptop_pc”}’ ‘https://api.Xurrent.com/v1/products’
In Xurrent’s user interface the result will then look like this: