{"type":"api","title":"Refresh inventory","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/f445c17e25a1120e8fbde4bd413083d0fd88b2b3/1c070d4e-8870-3df3-a541-e46a890a47cb","info":{"title":"Crosswork Workflow Manager Solutions - Inventory","description":"Inventory component addresses the need where we require device details like device name, IP, hostname, Software Type, installed packages.\nFor collecting the required device details, Inventory performs the minimal device data collection using the inventory package in NSO.","contact":{"name":"Crosswork Team, Cisco","email":"support@cisco.com"},"license":{"name":"Cisco Software License Agreement","url":"https://www.cisco.com/public/sw-license-agreement.html"},"version":"7.1.0"},"x-parser-conf":{"overview":{"markdownPath":"reference/CWM-SOLUTIONS/inventory-api.overview.md"}},"openapi":"3.0.1","servers":[{"url":"https://crosswork-ip:30603/crosswork/cwms/inventory/v1"}],"securitySchemes":{"Bearer":{"type":"apiKey","description":"Type \"Bearer\" followed by a space and JWT token.","name":"Authorization","in":"header"}}},"spec":{"tags":["Inventory"],"summary":"Refresh inventory","description":"Fetch invenotry details for provided list of device uuids.","operationId":"refreshInventory","requestBody":{"description":"Refresh Device Uuid","x-codegen-request-body-name":"request","content":{"application/json":{"schema":{"type":"object","properties":{"uuid":{"type":"array","description":"Device UUID","items":{"type":"string"}}},"description":"API inventory/refresh","$$ref":"#/components/schemas/rakapi.RakDevice"}}},"required":true},"responses":{"207":{"description":"Multi-Status","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","description":"Device data node","items":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status code"},"message":{"type":"string","description":"Message of response"},"status":{"type":"string","description":"Response status"},"uuid":{"type":"string","description":"Device UUID"}},"description":"Device Data response","$$ref":"#/components/schemas/rakapi.RakDeviceDataResp"}}},"description":"/refresh API Response","$$ref":"#/components/schemas/rakapi.RakDeviceDataRespList"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","description":"Device data node","items":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status code"},"message":{"type":"string","description":"Message of response"},"status":{"type":"string","description":"Response status"},"uuid":{"type":"string","description":"Device UUID"}},"description":"Device Data response","$$ref":"#/components/schemas/rakapi.RakDeviceDataResp"}}},"description":"/refresh API Response","$$ref":"#/components/schemas/rakapi.RakDeviceDataRespList"}}}},"401":{"description":"Unauthorized","content":{}},"403":{"description":"Forbidden","content":{}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status code"},"message":{"type":"string","description":"Message of response"},"status":{"type":"string","description":"Response status"},"uuid":{"type":"string","description":"Device UUID"}},"description":"Device Data response","$$ref":"#/components/schemas/rakapi.RakDeviceDataResp"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","description":"Device data node","items":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status code"},"message":{"type":"string","description":"Message of response"},"status":{"type":"string","description":"Response status"},"uuid":{"type":"string","description":"Device UUID"}},"description":"Device Data response","$$ref":"#/components/schemas/rakapi.RakDeviceDataResp"}}},"description":"/refresh API Response","$$ref":"#/components/schemas/rakapi.RakDeviceDataRespList"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status code"},"message":{"type":"string","description":"Message of response"},"status":{"type":"string","description":"Response status"},"uuid":{"type":"string","description":"Device UUID"}},"description":"Device Data response","$$ref":"#/components/schemas/rakapi.RakDeviceDataResp"}}}}},"__originalOperationId":"refreshInventory","method":"post","path":"/refresh"}}