---
title: "PATCH /{stack}/adminconfig/v2/inputs/http-event-collectors/{hec}"
method: PATCH
path: "/{stack}/adminconfig/v2/inputs/http-event-collectors/{hec}"
---

# PATCH /{stack}/adminconfig/v2/inputs/http-event-collectors/{hec}

`PATCH /{stack}/adminconfig/v2/inputs/http-event-collectors/{hec}`

Modify properties of HEC

## Path parameters

- `stack` string, required
- `hec` string, required

## Request body

- HecSpec
  - `_meta` string — additional metadata in the format <key>::<value>, delimited by space.
  - `allowedIndexes` string[]
  - `defaultHost` string
  - `defaultIndex` string
  - `defaultSource` string
  - `defaultSourcetype` string
  - `disabled` boolean
  - `name` string, required
  - `token` string
  - `useAck` boolean

## Response `202`

successfully submitted a hec token update

- string

## Other responses

- `default` — unexpected error

---

[API](https://skmtc.net/splunk/apis/splunk-cloud-admin-api.md) · [All operations](https://skmtc.net/splunk/apis/splunk-cloud-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/splunk/splunk-cloud-admin-api/versions/31495f4d6117/schema)
