# Update Jira integration

Update an existing Jira integration. Send only the parameters you wish to change (eg. `name`).


[endpoint]
base_url = "https://uptime.betterstack.com"
path = "/api/v2/jira-integrations/{jira_integration_id}"
method = "PATCH"

[[path_param]]
name = "jira_integration_id"
description = "The ID of the Jira integration you want to update"
required = true
type = "string"

[[body_param]]
name = "name"
description = "The name of the Jira integration that you can see in the dashboard."
required = false
type = "string"

[[body_param]]
name = "*"
description = "Any params you'd like to set. See the [list of all Jira integration API parameters](https://betterstack.com/docs/uptime/api/jira-integrations-response-params/) for details."
required = false

[[header]]
name = "Authorization"
description = "Bearer `$TOKEN`"
required = true
type = "string"

[[header]]
name = "Content_Type"
description = "application/json"
required = false
type = "string"
[/endpoint]

[responses]
[[response]]
status = 200
description = '''Returns the Jira integration'''
body = '''{
  "data": {  
    "id": "13760",
    "type": "jira_integration",
    "attributes": {
      "name": "Test",
      "automatic_issue_creation": false,
      "jira_project_key": "TP",
      "jira_issue_type_id": "10006",
      "jira_fields": {
        "labels": [
          {
            "label": "example-label",
            "value": "example-label"
          }
        ],
        "assignee": {
          "label": "John Doe",
          "value": "1234567890"
        },
        "reporter": {
          "label": "John Doe",
          "value": "1234567890"
        },
        "customfield_10015": 3,
        "customfield_10021": [
          {
            "label": "Impediment",
            "value": "10019"
          }
        ]
      },
      "team_name": "Test Team"
    }  
  }
}'''

[/responses]

#### Example cURL 

```shell
[label Example]
curl -X "PATCH" "https://uptime.betterstack.com/api/v2/jira-integrations/13755" \
     -H "Authorization: Bearer $TOKEN" \
     -H 'Content-Type: application/json; charset=utf-8' \
     -d $'{
  "name": "Test Again"
}'
```

[info]
#### Looking for the details of a specific parameter?
Explore [the list of all Jira integration API parameters](https://betterstack.com/docs/uptime/api/jira-integrations-response-params/)
[/info]
