# Unsupported content type c#

**URL:** <https://devforum.zoom.us/t/unsupported-content-type-c/2582>\
**Category:** API and Webhooks\
**Created:** [November 21, 2018, 4:30pm UTC](https://devforum.zoom.us/t/unsupported-content-type-c/2582 "2018-11-21T16:30:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![oltinternational](https://avatars.discourse-cdn.com/v4/letter/o/dc4da7/32.png) [@oltinternational](https://devforum.zoom.us/u/oltinternational)\
**Post date:** [November 21, 2018, 4:30pm UTC](https://devforum.zoom.us/t/unsupported-content-type-c/2582/1 "2018-11-21T16:30:23Z")

</div>

Hi, getting the response “unsupported content type” when making a request.

Working with C#:

```
public static IRestResponse Meetings()
{
    RestClient client = new RestClient();
    client.BaseUrl = new Uri("https://api.zoom.us/v2");
    RestRequest request = new RestRequest();
    request.AddParameter("userId",
        "support@oltinternational.net", ParameterType.UrlSegment);
    request.Resource = "users/{userId}/meetings";
    request.AddParameter("access_token", "my access token is put here yadda yadda");
    request.Method = Method.POST;
    var response = client.Execute(request);
    return response;
}

```

Response is “unsupported content type”, the content type is **application/json**.

Any help would be great.

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [November 21, 2018, 5:40pm UTC](https://devforum.zoom.us/t/unsupported-content-type-c/2582/2 "2018-11-21T17:40:53Z")

</div>

Hi @oltinternational,  
Have you tried the same payload using Postman or Curl to see if it works? The content-type application/json should work.

Thanks

---

<div class="post-metadata">

**Author:** ![oltinternational](https://avatars.discourse-cdn.com/v4/letter/o/dc4da7/32.png) [@oltinternational](https://devforum.zoom.us/u/oltinternational)\
**Post date:** [November 22, 2018, 9:33am UTC](https://devforum.zoom.us/t/unsupported-content-type-c/2582/3 "2018-11-22T09:33:57Z")

</div>

Hi Michael, thanks for the reply but there’s not much point in me testing it using Postman/Curl because i can only use C# in this instance to retrieve the data I need.

Can you offer a C# solution please?  
Thanks.

---

<div class="post-metadata">

**Author:** ![oltinternational](https://avatars.discourse-cdn.com/v4/letter/o/dc4da7/32.png) [@oltinternational](https://devforum.zoom.us/u/oltinternational)\
**Post date:** [November 22, 2018, 11:32am UTC](https://devforum.zoom.us/t/unsupported-content-type-c/2582/4 "2018-11-22T11:32:48Z")

</div>

Tried sending a test request on this page:

> **[Create a Meeting - Meetings - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate)**
>
> Create a meeting for a user. The expiration time for the start\_url object is two hours. For API users, the expiration time is 90 days.
> Authorization
> Req...

and i am met with the message “Request Body should be a valid JSON object.”, code 300

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [December 5, 2018, 9:06pm UTC](https://devforum.zoom.us/t/unsupported-content-type-c/2582/5 "2018-12-05T21:06:40Z")

</div>

Hi @oltinternational,

Usually, if you get this type of error, you have to make sure the JSON your sending is valid. Can you post the JSON so that we can take a further look?

Thanks

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 5:59pm UTC](https://devforum.zoom.us/t/unsupported-content-type-c/2582/6 "2020-08-21T17:59:55Z")

</div>


