Getting INVALID_INPUT on /rest/api/3/issue/CASE_NUMBER

Hello,

Today I am getting an ‘INVALID_INPUT’ / 400 error when making a PUT call to https://CLOUD_HOSTED.atlassian.net/rest/api/3/issue/CASE_NUMBER

This has been working up to today or so.

Payload is:

{
  "update": {
    "description": [
      {
        "set": {
          "version": 1,
          "type": "doc",
          "content": [
            {
              "type": "paragraph",
              "content": [
                {
                  "type": "text",
                  "text": "Enhancements: \n",
                  "marks": [
                    {
                      "type": "strong"
                    }
                  ]
                }
              ]
            },
            {
              "type": "paragraph",
              "content": [
                {
                  "type": "text",
                  "text": "Risk: \n",
                  "marks": [
                    {
                      "type": "strong"
                    }
                  ]
                },
                {
                  "type": "text",
                  "text": "-"
                },
                {
                  "type": "listItem",
                  "content": [
                    {
                      "type": "paragraph",
                      "content": [
                        {
                          "type": "text",
                          "text": "Demo CleanUp -  Update demo site"
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "type": "paragraph",
              "content": [
                {
                  "type": "text",
                  "text": "Deployment Instructions:",
                  "marks": [
                    {
                      "type": "strong"
                    }
                  ]
                }
              ]
            },
            {
              "type": "paragraph",
              "content": [
                {
                  "type": "text",
                  "text": "Stage deploy job: ",
                  "marks": [
                    {
                      "type": "strong"
                    }
                  ]
                },
                {
                  "type": "text",
                  "text": " GREEN \n",
                  "marks": [
                    {
                      "type": "strong"
                    },
                    {
                      "type": "textColor",
                      "attrs": {
                        "color": "#36B37E"
                      }
                    }
                  ]
                },
                {
                  "type": "text",
                  "text": "https://127.0.0.1/rtest/",
                  "marks": [
                    {
                      "type": "link",
                      "attrs": {
                        "href": "https://127.0.0.1/rtest/"
                      }
                    }
                  ]
                }
              ]
            },
            {
              "type": "paragraph",
              "content": [
                {
                  "type": "text",
                  "text": "Prod deploy job: ",
                  "marks": [
                    {
                      "type": "strong"
                    }
                  ]
                },
                {
                  "type": "text",
                  "text": " GREEN \n",
                  "marks": [
                    {
                      "type": "strong"
                    },
                    {
                      "type": "textColor",
                      "attrs": {
                        "color": "#36B37E"
                      }
                    }
                  ]
                },
                {
                  "type": "text",
                  "text": "https://127.0.0.1/rtest/",
                  "marks": [
                    {
                      "type": "link",
                      "attrs": {
                        "href": "https://127.0.0.1/rtest/"
                      }
                    }
                  ]
                }
              ]
            }
          ]
        }
      }
    ]
  }
}

Did something change in the formatting requirement of the payload?

A 400 error could mean a few different things. Some of them could be changes on the customer side, can you rule these out first before we look into changes with the product team?

From the docs

Returned if:
* the request body is missing.
* the user does not have the necessary permission to edit one or more fields.
* the request includes one or more fields that are not found or are not associated with the issue’s edit screen.
* the request includes an invalid transition.

I finally figured out what was going on.
The case that I was trying to update was not formatted correctly. I had tried a few, but it turned out that those few were created differently and messed up our code.
Sorry for the confusion.