Creating a comment with attachment

I’m integrating Jira with our web app. I need to create a comment for an issue that will have an attachment and will contain ADF payload.

First I tried JSM API:

POST /rest/servicedeskapi/servicedesk/<service-desk-id>/attachTemporaryFile

and then

POST /rest/servicedeskapi/request/<issue-key>/attachment
{
  "additionalComment": {
    "body": "Let's dance!"
  },
  "public": true,
  "temporaryAttachmentIds": [
    "9e2e7582-47a0-4016-a48d-646b2f7f2550" // <- received from previous call
  ]
}

and it works good.

But I need to have a comment as a ADF.

{
  "additionalComment": {
    "body": {
      "version": 1,
      "type": "doc",
      "content": [
        {
          "type": "paragraph",
          "content": [
            {
              "type": "text",
              "text": "Let's dance!"
            }
          ]
        }
      ]
    }
  },
  "public": true,
  "temporaryAttachmentIds": [
    "115cc49c-9225-485d-873b-fd0625b7e2af"
  ]
}

I get 400 error:

* The requested URL returned error: 400
* process_pending_input: nghttp2_session_mem_recv() returned -902:The user callback function failed

How can I add a comment with ADF body and attachment?