v51

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-011189403.1 MB
sources

Update metadata for an HEC token for a Splunk HEC Source within a Pack

Update the metadata for the specified HEC token for the specified Splunk HEC Source within the specified Pack.

patch/p/{pack}/system/inputs/{id}/hectoken/{token}

Path parameters

idstring required

The <code>id</code> of the Splunk HEC Source.

tokenstring required

The HEC token value whose metadata you want to update. Must match an existing token on the Source.

packstring required

The <code>id</code> of the Pack.

Request body

allowedIndexesAtTokenstring[]

List of index names that the HEC token is allowed to write to.

descriptionstring

Brief description for the HEC token.

enabledboolean

If <code>true</code>, the HEC token is enabled. Otherwise, <code>false</code>.

Response

The updated Splunk HEC Source with the modified HEC token metadata.

countinteger required

number of items present in the items array