{"type":"api","title":"Upload image file chunk","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/f445c17e25a1120e8fbde4bd413083d0fd88b2b3/f09e2906-53c8-3d4a-b731-512c8b9bc971","info":{"title":"Crosswork Workflow Manager Solutions - Image Repository","description":"Image Repository component gives ability to browse through the synced data for SMU info for optimal list or feature specific list etc on a device release. Users can also select the necessary SMUs to download the image files from the CCO.\nImage Repository also features a local repository that offers multiple filters for browsing available local images, provides an image upload function, and allows users to view image metadata.","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/repository-api.overview.md"}},"openapi":"3.0.1","servers":[{"url":"https://crosswork-ip:30603/crosswork/cwms/repository/v1"}],"securitySchemes":{"BearerAuth":{"type":"apiKey","description":"Type \"Bearer\" followed by a space and JWT token.","name":"Authorization","in":"header"}}},"spec":{"tags":["Local Repository"],"summary":"Upload image file chunk","description":"Upload image file chunk to local repository","operationId":"uploadChunk","parameters":[{"name":"resumableChunkNumber","in":"query","description":"The index of the chunk in the current upload. First chunk is 1.","required":true,"schema":{"type":"number"}},{"name":"resumableIdentifier","in":"query","description":"A unique identifier for the file contained in the request.","required":true,"schema":{"type":"string"}},{"name":"resumableTotalSize","in":"query","description":"The total file size.","required":true,"schema":{"type":"number"}},{"name":"resumableTotalChunks","in":"query","description":"The total number of chunks.","required":true,"schema":{"type":"number"}},{"name":"resumableFilename","in":"query","description":"The original file name","required":true,"schema":{"type":"string"}},{"name":"resumableChunkSize","in":"query","description":"for the last chunk for a file.","required":true,"schema":{"type":"number"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"required":["file"],"type":"object","properties":{"file":{"type":"string","description":"Image Chunk bytes","format":"binary"}}}},"application/json":{"schema":{"required":["file"],"type":"object","properties":{"file":{"type":"string","description":"Image Chunk bytes","format":"binary"}}}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP Status Code","example":200},"message":{"type":"string","description":"Message"},"status":{"type":"string","description":"Status","example":"Success"}},"description":"Success Response","$$ref":"#/components/schemas/StatusOK"}}}},"400":{"description":"Bad Data","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP Status Code","example":400},"message":{"type":"string","description":"Message"},"status":{"type":"string","description":"Status","example":"Failed"}},"description":"Bad or Missing Data Response","$$ref":"#/components/schemas/StatusBadRequest"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Error Message"}},"description":"Forbidden Response","$$ref":"#/components/schemas/StatusForbidden"}}}},"406":{"description":"Not Acceptable","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP Status Code","example":406},"message":{"type":"string","description":"Message"},"status":{"type":"string","description":"Status","example":"Failed"}},"description":"Request Not Acceptable Response","$$ref":"#/components/schemas/StatusNotAcceptable"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP Status Code","example":500},"message":{"type":"string","description":"Message"},"status":{"type":"string","description":"Status","example":"Failed"}},"description":"Backend Error Response","$$ref":"#/components/schemas/StatusInternalServerError"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP Status Code","example":503},"message":{"type":"string","description":"Message"},"status":{"type":"string","description":"Status","example":"Failed"}},"description":"Maintenance Mode Response","$$ref":"#/components/schemas/StatusServiceUnavailable"}}}}},"security":[{"BearerAuth":[]}],"__originalOperationId":"uploadChunk","method":"post","path":"/chunk"}}