Skip to content

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

  1. Pass the caller-supplied method route and AuditCollection payload directly to _api.PostJson<bool> (BR-AAC-006).
  2. Read the first boolean element from the response wrapper's Results collection 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 Results collection returns false through FirstOrDefault().
  • The method does not add its own exception handling or response-status interpretation.

Sources

  • Business\SAIF.Business.Policy.Audit.ApiCalls\ApiCall.cs