Attaches an already-created backing resource to the requirement. Creating the resource and attaching it are separate acts — create it on its own collection first, then apply it here.
Either party may call this. A payer may apply from any state except while one of their own status overrides stands; a payee may not replace a source the payer applied to a requirement that is already Completed. Neither party may apply while a payer override is in effect — the payer must approve, reject or revert first, because the override decides the requirement's status regardless of which source is attached.
The source must belong to the same payer/payee relationship as the requirement, and must not be one this requirement has already used — the currently attached id and every id in dataSourceHistory are both rejected. On success the previous source is archived to dataSourceHistory with reason: Replaced, dataSourceAppliedBy records the applying party, and requiresFreshDataSource is cleared.
Returns 422 for a requirement type with no independently addressable backing resource, and 409 while the requirement's monitor is paused or cancelled.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||