Post audit policy terms to the Policy Audit API¶
Submit audit policy terms to a caller-selected Policy Audit API route.
| Field | Value |
|---|---|
| Operation ID | OP-002 |
| Trigger | A caller invokes PolicyAuditAPICall(auditCollection, method). |
| Inputs | AuditCollection auditCollection, string method. |
| Outputs | bool success flag. |
| Primary components | ApiCall.PolicyAuditAPICall |
| Entry point | Business\SAIF.Business.Policy.Audit.ApiCalls\ApiCall.cs |
Steps¶
- Pass the caller-supplied
methodroute andAuditCollectionpayload directly to_api.PostJson<bool>(BR-AAC-006). - Read the first boolean element from the response wrapper's
Resultscollection and return it to the caller (BR-AAC-007).
Process flow¶
The following diagram visualizes this operation's control flow.
flowchart TD
Start([PolicyAuditAPICall]) --> Post[POST audit collection]
Post --> Result[Read first boolean result]
Result --> Done([Return bool])
Failure and edge-case behavior¶
- An empty
Resultscollection returnsfalsethroughFirstOrDefault(). - The method does not add its own exception handling or response-status interpretation.
Related documentation¶
Sources¶
Business\SAIF.Business.Policy.Audit.ApiCalls\ApiCall.cs