# Update Splunk integration

Update an existing Splunk On-Call integration. Send only the parameters you wish to change (eg. `name`).


[endpoint]
base_url = "https://uptime.betterstack.com"
path = "/api/v2/splunk-on-calls/{splunk_on_call_id}"
method = "PATCH"

[[path_param]]
name = "splunk_on_call_id"
description = "The ID of the Splunk On-Call integration you want to update"
required = true
type = "string"

[[body_param]]
name = "name"
description = "The name of the Splunk On-Call 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 Splunk On-Call integration API parameters](https://betterstack.com/docs/uptime/api/splunk-on-call-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 Splunk On-Call integration'''
body = '''{
  "data": {
    "id": "17",
    "type": "splunk_on_call_integration",
    "attributes": {
      "name": "Test Again",
      "url": "https://[url]",
      "team_name": "My team"
    }
  }
}'''

[/responses]

#### Example cURL 

```shell
[label Example]
curl -X "PATCH" "https://uptime.betterstack.com/api/v2/splunk-on-calls/17" \
     -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 Splunk On-Call integration API parameters](https://betterstack.com/docs/uptime/api/splunk-on-call-integrations-response-params/)
[/info]