{"type":"api","title":"Enable/Disable Granular Inventory (GI) for device","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/f445c17e25a1120e8fbde4bd413083d0fd88b2b3/7c48b645-9c1b-3c59-9c5a-150c8b12ee59","info":{"title":"Inventory APIs","description":"APIs exposed by Inventory service.","contact":{"name":"Crosswork Team, Cisco","email":"support@cisco.com"},"license":{"name":"Cisco Software License Agreement","url":"http://www.cisco.com/public/sw-license-agreement.html"},"version":"7.1.0"},"x-parser-conf":{"overview":{"markdownPath":"reference/EMF/inventory-api-overview.md"}},"openapi":"3.0.1","servers":[{"url":"https://{server_ip}:30603/crosswork/inventory/v1/networkelement","description":"Generated server url"}]},"spec":{"tags":["Inventory"],"summary":"Enable/Disable Granular Inventory (GI) for device","description":"To retrieve the \u003cb\u003e nodeuuids \u003c/b\u003e of devices, use the following API - \n - \u003cb\u003e /nodeuuids \u003c/b\u003e\n \n","operationId":"updateGIconf","requestBody":{"content":{"application/json":{"schema":{"type":"object","description":"GIRequestDTO","properties":{"enable":{"type":"boolean","description":"enable"},"nodeuuids":{"type":"array","description":"nodeuuids","items":{"type":"string","description":"items"}}},"$$ref":"#/components/schemas/GIRequestDTO"},"examples":{"example":{"summary":"Sample Request Body","value":{"enable":true,"nodeuuids":["string"]},"$$ref":"#/components/examples/GISampleRequestBody"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","description":"GI Response DTO","properties":{"response":{"type":"string","description":"response"},"message":{"type":"string","description":"message"}},"$$ref":"#/components/schemas/GIResponseDTO"},"examples":{"example":{"summary":"Sample Response","value":{"response":"success","message":"Granular inventory has been enabled for the selected node(s)"},"$$ref":"#/components/examples/GISampleResponse"}}}}},"400":{"description":"Bad Request - Invalid request"},"401":{"description":"Unauthorized. The request has not been applied because it lacks valid authentication credentials for the target resource."},"403":{"description":"Forbidden. The server recognizes the authentication credentials, but the client is not authorized to perform this request."},"500":{"description":"Internal Server Error - operation-failed"}},"__originalOperationId":"updateGIconf","method":"put","path":"/granularinventory"}}