Forum Discussion
PHancke
Aug 03, 2021Brass Contributor
Azure Sentinel REST API to Create Comment
Hi,
We are trying to create comments using the REST API. The Incident comments / Create comment docs (https://docs.microsoft.com/en-us/rest/api/securityinsights/incident-comments/create-comment) states that incidentCommentID is required. How do I create a new incident comment instead of adding to an existing comment?
Regards
Pieter
2 Replies
- GaryBusheyBronze Contributor
PHancke The IncidentCommentID is just a GUID so you can make your own when creating a new comment.
BTW, if you go to https://github.com/Azure/azure-rest-api-specs/tree/main/specification/securityinsights/resource-manager/Microsoft.SecurityInsights you will see that there are examples on how to use most, if not all, of the REST API calls.
- Shem_SargentCopper ContributorGaryBushey, thanks for providing that helpful gem.
Sander: Why should I have to provide you a GUID? Make your own GUID and tell me what it is in the response.