Issue
Can we use an API to bulk assign Reporting tags to endpoints?
Resolution
Yes, there is an API route for adding/updating reporting tags for endpoints:
PUT /openapi/v3/endpoints/{id}/reporting_tags/{reporting_tag}
We will need need:
- The list of endpoints by ID
- Enumerate the IDs
- Make a call to PUT /openapi/v3/endpoints/{id}/reporting_tags/{reporting_tag_name}?value={value} with the desired reporting tag name and value.
So for example:
PUT /openapi/v3/endpoints/20/reporting_tags/Hotel?value=Hilton
Results in the following Reporting tag and value:
Here's the link to that section of the API to refer to: https://go.my.redcanary.co/openapi/v3/docs/index.html#operation--openapi-v3-endpoints--id--reporting_tags--reporting_tag--put
Note: You will need to update the URL above with the {subdomain}, {reporting_tag_name}, and {value}.
Comments
0 comments
Please sign in to leave a comment.