How do I add comments to my Jira ticket through postman?

Hi Iragudo,

I am trying to add comments to my Jira ticket through postman where I am getting error as 404 - Not found. I am using the below code in postman by giving my id and password in authorization:

url = ""

auth = HTTPBasicAuth("", "<api_token>")

headers = {
  "Accept": "application/json",
  "Content-Type": "application/json"

payload = json.dumps( {
  "body": {
    "content": [
        "content": [
            "text": "Hello",
            "type": "text"
        "type": "paragraph"
    "type": "doc",
    "version": 1
  "visibility": {
    "identifier": "Administrators",
    "type": "role",
    "value": "Administrators"
} )

response = requests.request(

print(json.dumps(json.loads(response.text), sort_keys=True, indent=4, separators=(",", ": ")))

Am I using the correct API?


That URL indicates you are using Jira Server (or Data Center), not Jira Cloud. The REST APIs are different. Specifically, the Jira Server REST API does not have a version 3.

1 Like

The Jira Server API docs have a section with examples for adding comments to issues:–examples