Distribute a policy document using presets¶
Post a preset-driven policy document payload to the distribution API.
| Field | Value |
|---|---|
| Operation ID | OP-007 |
| Trigger | A caller invokes DistributeApiCall(documentConfig). |
| Inputs | PolicyDocumentConfig documentConfig. |
| Outputs | bool success flag. |
| Primary components | PolicyDocDistributionCall.DistributeApiCall |
| Entry point | Business\SAIF.Business.Policy.Audit.ApiCalls\PolicyDocDistributionCall.cs |
Steps¶
- POST the caller-provided
PolicyDocumentConfigpayload to/v1/documents/distribute/presetsand deserialize the response asRequestResult. - Return
truewithout examining the returnedRequestResult(BR-AAC-018).
Process flow¶
The following diagram visualizes this operation's control flow.
flowchart TD
Start([DistributeApiCall]) --> Post[POST /v1/documents/distribute/presets]
Post --> Done([Return true])
Failure and edge-case behavior¶
- The method's return value does not distinguish accepted, rejected, or failed preset distributions.
- Any exception behavior is delegated to the underlying HTTP client because the method adds no local catch block.
Related documentation¶
Sources¶
Business\SAIF.Business.Policy.Audit.ApiCalls\PolicyDocDistributionCall.cs