This is my Response From Hubspot - What Does It Mean?

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 415 Unsupported Media Type</title>
</head>
<body><h2>HTTP ERROR 415</h2>
<p>Reason:
<pre> Unsupported Media Type</pre></p>
</body>
</html>

Can you provide your full request including headers?

[chatgpt generated]

Here are a few common scenarios where this might occur:

  1. Content-Type Mismatch: You’ve set the Content-Type header incorrectly or haven’t set it at all, and the server expects a specific type.
  2. Payload Format: The data you’re sending in the request body does not conform to the expected format (e.g., sending JSON when XML is expected, or vice versa).
  3. API Changes: The server’s API has been updated, and the endpoint now requires a different media type.
  4. Server Configuration: The server is misconfigured and not accepting payloads that it should.

Thank you, so what type of format does Hubspot prefer?

XML Webservice POST

Application - XML POST

URL - encoded POST

URL - encoded GET

Json POST

JSON PATCH

Plain Text POST