To discard an audit, use the Discard
method. Discard
combines the GUID of the audit and the text of an annotation and uses them for the Discard
comment. Discard
does not return a value.
Note:
Discard
is only available with API v3.Library method name |
Discard
|
---|---|
Description | Discard an audit object |
Method signature |
Discard(auditID, annotationText);
|
Method input parameters |
|
Return value | None |
The following .NET C# code is an example of a discard audit call:
Guid auditId = new Guid("9cf1c11d-a8cc-48e6-9e4c-f02af26e8fdf");
string annotationText = "Reason why the audit has been discarded";
client.Audits.Discard(auditId, annotationText);