Restore selected archived sponsorships
Restores archived sponsorships selected from the authenticated admin’s sponsorship table, including selections spanning every filtered result. Each restored commitment has failed-payment retries reset; a supplied next action date updates its schedule, while omission preserves its existing date. Requires permission: manage_programs and is gated by the disable_sponsorship_restore client restriction.
Authorizations
Gratona API key sent with the compatibility header X-HYS-API-Key.
Body
Sponsorship table selection and the date used to resume commitment processing.
A non-empty list of positive archived sponsorship relationship IDs, or the exact string all to resolve every row in the supplied tenant-scoped table selection. Explicit lists and resolved selections are limited to 250 relationships per synchronous restore.
1 - 250 elementsx >= 1Date when restored commitments should next be processed. Validation: nullable|date_format:Y-m-d; when omitted, each commitment's existing schedule date is preserved.
"2026-08-01"
Explicitly confirms restoration for all selected recipients already at capacity or projected to exceed capacity by the selected restore.
true
Short-lived token binding the mutation to the exact resolved selection and billing state. Required while sponsorship lifecycle controls are enabled.
"eyJpdiI6Ik..."
Program ID that scopes an all selection, or all for every accessible program.
17
Indicates whether IDs were selected explicitly or represent every filtered table result.
selected_rows, all_total "selected_rows"
Archived-table marker. Use true when resolving an all selection so only soft-deleted sponsorships are restored.
true "true"
Current sponsorship-table search query used when resolving an all selection.
"Taylor"
Optional active commitment status filter retained for compatibility with table selections.
current, due "current"
Advanced sponsorship filter groups used to resolve an all selection.
Saved sponsorship filter whose criteria should scope an all selection.
42
Visible sponsorship fields forwarded to filtered selection resolution.
Current sponsorship worksheet column order forwarded to filtered selection resolution.
Response
One or more sponsorships were restored.
Human-readable restoration result.
"Sponsorships Successfully Restored."
Number of tenant-owned archived sponsorships restored.
2
Number of selected IDs skipped because they were invalid, active, cross-tenant, or linked to an archived donor or recipient.
1
Selected relationship IDs that were not restored.
Per-ID skip details. Reasons include invalid_id, not_archived_or_not_owned, donor_inactive, recipient_inactive, and did_not_remain_active.