diff --git a/pulsar-functions/runtime/src/main/java/org/apache/pulsar/client/admin/internal/FunctionsImpl.java b/pulsar-functions/runtime/src/main/java/org/apache/pulsar/client/admin/internal/FunctionsImpl.java index 733957be33dba..eadbd3f757ea3 100644 --- a/pulsar-functions/runtime/src/main/java/org/apache/pulsar/client/admin/internal/FunctionsImpl.java +++ b/pulsar-functions/runtime/src/main/java/org/apache/pulsar/client/admin/internal/FunctionsImpl.java @@ -120,7 +120,7 @@ public void updateFunction(FunctionConfig functionConfig, byte[] code) throws Pu MediaType.APPLICATION_JSON_TYPE)); } request(functions.path(functionConfig.getTenant()).path(functionConfig.getNameSpace()).path(functionConfig.getName())) - .post(Entity.entity(mp, MediaType.MULTIPART_FORM_DATA), ErrorData.class); + .put(Entity.entity(mp, MediaType.MULTIPART_FORM_DATA), ErrorData.class); } catch (Exception e) { throw getApiException(e); }