{"type":"api","title":"Update the custom-mib-packages.tar.xz package","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/f445c17e25a1120e8fbde4bd413083d0fd88b2b3/f8aef008-b88b-3fd6-b95f-e63951de2eb0","info":{"title":"Crosswork Data Gateway Custom Software API- v1 (Deprecated)","description":"APIs to support Cisco Crosswork Data Gateway Management's custom software functionality.","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":"1.0.0"},"security":[{"bearerAuth":[]}],"x-parser-conf":{"overview":{"markdownPath":"reference/CDG/Deprecated/cdg_custom_files_api_v1-overview.md"}},"swagger":"2.0","basePath":"/crosswork/dg-manager","schemes":["https"],"securityDefinitions":{"bearerAuth":{"type":"apiKey","name":"Authorization","in":"header","description":"Bearer Auth Token"}}},"spec":{"description":"Helps in updating the custom-mib-packages.tar.xz MIB package. Update is supported for custom-mib-packages.tar.xz only.","summary":"Update the custom-mib-packages.tar.xz package.","deprecated":true,"operationId":"PutUploadMIBPackage","consumes":["multipart/form-data"],"parameters":[{"name":"fileName","in":"formData","required":true,"type":"string","description":"For the MIB_PACKAGE fileType only, the filename must be custom-mib-packages.tar.xz."},{"name":"fileType","in":"formData","required":true,"type":"string","description":"The fileType must be MIB_PACKAGE only. Update is supported for custom-mib-packages.tar.xz only."},{"name":"collectorType","in":"formData","required":true,"type":"string","description":"The collectorType must be SNMP. This is the only collector type supported for the PUT operation."},{"name":"notes","in":"formData","required":false,"type":"string","description":"A text string describing the custom software package."},{"name":"file","in":"formData","type":"file","format":"binary","description":"The content of the uploaded file."}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"title":"FilePatchResponse","example":{"fileName":"custom-cli-device-packages.tar.xz","modifiedTime":1706862637,"bundleType":"","fileType":"DEVICE_PACKAGE","collectorType":"CLI","notes":"Test","appName":"","downloadUrl":""},"properties":{"fileName":{"type":"string"},"modifiedTime":{"type":"integer"},"bundleType":{"type":"string"},"fileType":{"type":"string"},"collectorType":{"type":"string"},"notes":{"type":"string"},"appName":{"type":"string"},"downloadUrl":{"type":"string"}},"$$ref":"#/definitions/FilePatchResponse"},"headers":{}},"400":{"description":"Bad Request. The request is malformed in some way and the server cannot process it."}},"__originalOperationId":"PutUploadMIBPackage","produces":["application/json"],"security":[{"bearerAuth":[]}],"method":"put","path":"/v1/custom-files/upload/"}}