trackme-limited / trackme-report-issues

The purpose of this repository is to allow Splunk community to report issues and enhancements requests
2 stars 0 forks source link

bug - API Documentation & Reference - Incorrect API reference examples for tags policies management endpoints (component is missing for all examples) #802

Closed sebwurl closed 1 month ago

sebwurl commented 1 month ago

bug - API Documentation & Reference - Incorrect API reference examples for tags policies management endpoints (component is missing for all examples)

In version 2.1.1 the API reference for tag_policies_add is: | trackme mode=post url="/services/trackme/v2/splk_tag_policies/write/tag_policies_add" body="{'tenant_id': 'mytenant', 'tags_policy_id': 'linux_secure', 'tags_policy_id': 'linux_secure', 'tags_policy_value': 'Linux,OS,CIM', 'tags_policy_regex': '\:linux_secure$'}"

This results in "missing component". Changing it accordingly makes it work (the tags_policy_id appeared twice in the reference)

| trackme mode=post url="/services/trackme/v2/splk_tag_policies/write/tag_policies_add" body="{'tenant_id': 'mytenant', 'tags_policy_id': 'linux_secure', 'component': 'dsm', 'tags_policy_value': 'Linux,OS,CIM', 'tags_policy_regex': '\:linux_secure$'}"