https://marcusschiesser.github.io/2021/12/21/using-url-path-parameters-in-splunk-rest-endpoints/
Using URL path parameters in Splunk REST endpoints