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-4me-Account: wna-itโ -d โ{โbrandโ:โDellโ, โmodelโ:โPrecision M4400โณ, โcategoryโ:โcomputer/laptop_pcโ}โ โhttps://api.4me.com/v1/productsโ
In Xurrentโs user interface the result will then look like this:
