{"type":"api","title":"Update the custom-mib-packages.tar.xz package","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/f445c17e25a1120e8fbde4bd413083d0fd88b2b3/e710988f-f568-330e-9d5d-91ddcea98001","info":{"title":"Crosswork Data Gateway Custom Software API","description":"APIs to support Cisco Crosswork Data Gateway Management's custom software functionality.","version":"7.1.0","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"}},"security":[{"bearerAuth":[]}],"tags":[{"name":"Custome file operations","description":"Get/Set Custom files to CDG"}],"x-parser-conf":{"overview":{"markdownPath":"reference/CDG/cdg_custom_files_api_overview.md"}},"swagger":"2.0","basePath":"/crosswork/dg-manager/v2","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.","operationId":"PutUploadMIBPackage","deprecated":false,"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":"/custom-files/upload/"}}