IBM Support

Updating gateway extension using REST API fails with {"status":400,"message":["The multipart 'implementation' field must have a mimetype of application/zip."]}

Question & Answer


Question

Updating gateway extension using REST API fails with {"status":400,"message":["The multipart 'implementation' field must have a mimetype of application/zip."]}. Here is an example:
Request:
curl -v -k -X PUT 
--header 'Authorization: bearer ${bearer}'  
--header 'Content-Type: multipart/form-data' 
--form 'implementation=@./gateway-extension_ORIGINAL.zip'  
https://apic-np-api-manager.apic.subin.ibm.com/api/orgs/admin/availability-zones/availability-zone-default/gateway-services/gw-service-dv/gateway-extension

Response:
{"status":400,"message":["The multipart 'implementation' field must have a mimetype of application/zip."]}

[{"Type":"MASTER","Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSMNED","label":"IBM API Connect"},"ARM Category":[{"code":"a8mKe000000CaZVIA0","label":"API Connect-\u003EAPIC Gateway"}],"ARM Case Number":"TS019461331","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"and future releases;10.0.5"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
13 June 2025

UID

ibm17236659