This PR updates the update_incident function to pass true for the props parameter of _build_sent_data.
This helps us solve the use case of being able to pass in an object like {'labels': [{'labelName': 'test', 'labelType': 'User'}]} when calling update_incident .
We have tried doing something like update_incident(incident_id='xxx', update_items={'severity': 'xxx', 'properties.labels': [{'labelName': 'test", 'labelType': 'User'}]) with no luck
This PR updates the
update_incident
function to passtrue
for theprops
parameter of_build_sent_data
.This helps us solve the use case of being able to pass in an object like
{'labels': [{'labelName': 'test', 'labelType': 'User'}]}
when callingupdate_incident
.This should allow
labels
to be passed in according to the documentation here: https://learn.microsoft.com/en-us/rest/api/securityinsights/incidents/create-or-update?view=rest-securityinsights-2024-03-01&tabs=HTTPWe have tried doing something like
update_incident(incident_id='xxx', update_items={'severity': 'xxx', 'properties.labels': [{'labelName': 'test", 'labelType': 'User'}])
with no luck