Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • save comment API body are mention but api return error. please let me know request body in change?

save comment API body are mention but api return error. please let me know request body in change?

Laxman Khokhar August 6, 2024

Below body through a comment with attachment are save.?

Request Body :

 

{
  "body": {
    "type": "doc",
    "version": 1,
    "content": [
      {
        "type": "paragraph",
        "content": [
          {
            "text": "123",
            "type": "text"
          }
        ]
      },
      {
        "type": "mediaSingle",
        "attrs": {
          "layout": "center"
        },
        "content": [
          {
            "type": "media",
            "attrs": {
              "id": "113164",
              "type": "file",
              "collection": "attachments"
            }
          }
        ]
      }
    ]
  }
}
ERROR :

 

{
    "errorMessages": [
        "ATTACHMENT_VALIDATION_ERROR"
    ],
    "errors": {}
}

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events