{"type":"api","title":"Create app statues","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":["App Status"],"summary":"Create app statues","description":"Add device application details with status along with additional details under metadata json field. Mandatory feilds: uuid, app_name, status. Sample body: {\"uuid\": \"94bd2aee-f761-483e-aff8-9def211b9ef0\",\"app_name\": \"fleet\",\"status\": \"success\",\"metadata\": {\"status\": \"success\",\"version\": \"1.0\"}}","operationId":"createAppstatus","requestBody":{"description":"App Status","x-codegen-request-body-name":"request","content":{"application/json":{"schema":{"type":"object","properties":{"app_name":{"type":"string","description":"Application name"},"metadata":{"type":"object","properties":{"fields":{"type":"object","additionalProperties":{"type":"object","properties":{"kind":{"type":"object","description":"The kind of value.\n\nTypes that are valid to be assigned to Kind:\n\n\t*Value_NullValue\n\t*Value_NumberValue\n\t*Value_StringValue\n\t*Value_BoolValue\n\t*Value_StructValue\n\t*Value_ListValue"}},"$$ref":"#/components/schemas/structpb.Value"},"description":"Unordered map of dynamically typed values."}},"$$ref":"#/components/schemas/structpb.Struct","description":"Metadata contains additional details about the application"},"status":{"type":"string","description":"Status of device app name"},"uuid":{"type":"string","description":"UUID of device"}},"description":"API APP Status","$$ref":"#/components/schemas/rakapi.AppStatus"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"app_name":{"type":"string","description":"Application name"},"metadata":{"type":"object","properties":{"fields":{"type":"object","additionalProperties":{"type":"object","properties":{"kind":{"type":"object","description":"The kind of value.\n\nTypes that are valid to be assigned to Kind:\n\n\t*Value_NullValue\n\t*Value_NumberValue\n\t*Value_StringValue\n\t*Value_BoolValue\n\t*Value_StructValue\n\t*Value_ListValue"}},"$$ref":"#/components/schemas/structpb.Value"},"description":"Unordered map of dynamically typed values."}},"$$ref":"#/components/schemas/structpb.Struct","description":"Metadata contains additional details about the application"},"status":{"type":"string","description":"Status of device app name"},"uuid":{"type":"string","description":"UUID of device"}},"description":"Appstatus","$$ref":"#/components/schemas/dbmodel.AppStatus"}}}},"400":{"description":"Bad Request","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"}}}},"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"}}}},"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":"createAppstatus","method":"post","path":"/appstatus"}}