Openapi content type missmatch

I created a custom GPT and added an Action. The Action involves a POST call with content type:multipart/form-data but the request by GPT is always done with
application/json

The full spec looks like this:
{
  "openapi": "3.1.0",
  "info": {
    "title": "AEM as a Cloud Servie API",
    "description": "API for retrieving and manipulating AEM Data",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "url"
    }
  ],
    "/bin/replicate.json": {
      "post": {
        "description": "Publish or unpublish an AEM page",
        "operationId": "PublishUnpublishPage",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "path": {
                    "type": "string",
                    "description": "The path to the AEM page to be published or unpublished"
                  },
                  "cmd": {
                    "type": "string",
                    "description": "The command to publish ('activate') or unpublish ('deactivate') the page",
                    "enum": [
                      "activate",
                      "deactivate"
                    ]
                  }
                },
                "required": [
                  "path",
                  "cmd"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Page successfully published or unpublished"
          },
          "400": {
            "description": "Bad Request"
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ]
      }
    }
  },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      
    }
  }
}

But the actual call to the server looks like this:

POST /bin/replicate.json HTTP/1.1
Host: d85c-80-243-196-74.ngrok-free.app
User-Agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; ChatGPT-User/1.0; +https://openai.com/bot
Content-Length: 2
Accept: /
Accept-Encoding: gzip, deflate
Authorization: Basic Yxxxxxx

Content-Type: application/json

Openai-Conversation-Id: 9ba9a3c3-14ae-5ae4-8823-2581f6d03031
Openai-Ephemeral-User-Id: ff6fcafe-ab12-5976-a3ad-dd528b32ee76
Openai-Gpt-Id: g-zWtLE1hf1
Openai-Subdivision-1-Iso-Code: DE-HE
Traceparent: 00-0000000000000000bb9efe71635f1a8e-5ea7d36b327483d0-00
Tracestate: dd=s:0
X-Datadog-Parent-Id: 6820652618037363664
X-Datadog-Sampling-Priority: 0
X-Datadog-Trace-Id: 13519522894364744334
X-Forwarded-For: 13.66.11.106
X-Forwarded-Host: d85c-80-243-196-74.ngrok-free.app
X-Forwarded-Proto: https

{}

Anyone knows what i am doing wrong? Is there any error in the open AI Spec?

Before using this request in a production environment, ensure the following:

  • Replace the placeholder in the Authorization header with a valid username and password.
  • Confirm that the endpoint and host are correct.
  • Verify that the request body, when not empty, follows the expected JSON structure as per your API documentation.

The header was valid, also endpoint and host are correct.

What happens is that i send the request as multipart/form-data but the open AI Action does the call as Content-Type: application/json which does not work with my AEM API. (Which needs multipart/form-data)

OpenAI GPT-3.5 action appears to be configured to send the request with “Content-Type: application/json,” but your AEM API expects “multipart/form-data.”

so just play with it man trial error u know how it goes one thing at a time