# Updating meeting using PATCH on apache HttpPatch return code 200

**URL:** <https://devforum.zoom.us/t/updating-meeting-using-patch-on-apache-httppatch-return-code-200/81857>\
**Category:** Meetings\
**Created:** [January 21, 2023, 10:27am UTC](https://devforum.zoom.us/t/updating-meeting-using-patch-on-apache-httppatch-return-code-200/81857 "2023-01-21T10:27:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![leblicq](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/leblicq/32/44748_2.png) [@leblicq](https://devforum.zoom.us/u/leblicq)\
**Post date:** [January 21, 2023, 10:27am UTC](https://devforum.zoom.us/t/updating-meeting-using-patch-on-apache-httppatch-return-code-200/81857/1 "2023-01-21T10:27:28Z")

</div>

Hi,

## I’m trying to update a meeting with Java using org.apache.http.impl.client.CloseableHttpClient(). The endpoint used for the request is : [https://api.zoom.us/v2/mettings/xxxxxxxxxx](https://api.zoom.us/v2/mettings/xxxxxxxxxx) Any URL parameter is join to the request The body include a json : {“topic”:“test meeting”} I recieve a status code 200 and no update is done. When I tried with Postman, update is done perfectly. This is the java code used :

```auto
String zoom_api_url = "https://api.zoom.us/v2/mettings/xxxxxxxxxx";
CloseableHttpClient client = HttpClients.createDefault();
HttpPatch patchMethod = new HttpPatch(zoom_api_url); 
                        patchMethod.setHeader("Authorization", "Bearer " + token);
                        patchMethod.setHeader("Content-Type", "application/json");
                        patchMethod.setHeader("Accept", "application/json");

// Same result if I add or not the cookies to the request
RequestConfig requestConfig = RequestConfig.custom()
    			.setCookieSpec(CookieSpecs.DEFAULT)
    			.build();

patchMethod.setConfig(requestConfig);

StringEntity stringData = null; 
        
try {
     stringData = new StringEntity("{\"topic\":\" test meeting\"}", ContentType.APPLICATION_JSON);
			stringData.setContentEncoding("UTF-8");
			patchMethod.setEntity(stringData);
     CloseableHttpResponse getStubResponse = client.execute(patchMethod);
     int getStubStatusCode = getStubResponse.getStatusLine().getStatusCode();
     String responseBody = EntityUtils.toString(getStubResponse.getEntity());
     logger.info("response code:" + getStubStatusCode + " " + "responseBody : " + responseBody);
} catch (ParseException e) {
			e.printStackTrace();
} catch (IOException e) {
			e.printStackTrace();
}

```

* * *

Please can you help me with this error ?

Thank’s in advance.

Jean-Yves

---

<div class="post-metadata">

**Author:** ![rarev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rarev/32/38939_2.png) [@rarev](https://devforum.zoom.us/u/rarev)\
**Post date:** [January 23, 2023, 10:39pm UTC](https://devforum.zoom.us/t/updating-meeting-using-patch-on-apache-httppatch-return-code-200/81857/2 "2023-01-23T22:39:18Z")

</div>

Hi @leblicq

It appears you have a typo in the endpoint in this example, it should read `/v2/meetings/<meetingID>`, you’re reads `/v2/mettings/`

Could you update that line and try this again?

Regards!

---

<div class="post-metadata">

**Author:** ![GroumfIce](https://avatars.discourse-cdn.com/v4/letter/g/7ba0ec/32.png) [@GroumfIce](https://devforum.zoom.us/u/GroumfIce)\
**Post date:** [January 24, 2023, 5:43am UTC](https://devforum.zoom.us/t/updating-meeting-using-patch-on-apache-httppatch-return-code-200/81857/4 "2023-01-24T05:43:12Z")

</div>

Hi Ron,

Thank’s for your reply.  
It appears that’s wrong effectivelly.

It’s works now.

Thank’s for your help.

Jean-Yves
