Skip to main content
POST
Restore selected archived sponsorships

Authorizations

X-HYS-API-Key
string
header
required

Gratona API key sent with the compatibility header X-HYS-API-Key.

Body

application/json

Sponsorship table selection and the date used to resume commitment processing.

donor_entity_ids
required

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.

Required array length: 1 - 250 elements
Required range: x >= 1
Example:
next_action_date
string<date> | null

Date when restored commitments should next be processed. Validation: nullable|date_format:Y-m-d; when omitted, each commitment's existing schedule date is preserved.

Example:

"2026-08-01"

force_restore
boolean | null

Explicitly confirms restoration for all selected recipients already at capacity or projected to exceed capacity by the selected restore.

Example:

true

preview_token
string

Short-lived token binding the mutation to the exact resolved selection and billing state. Required while sponsorship lifecycle controls are enabled.

Example:

"eyJpdiI6Ik..."

program_id

Program ID that scopes an all selection, or all for every accessible program.

Example:

17

selection_mode
enum<string> | null

Indicates whether IDs were selected explicitly or represent every filtered table result.

Available options:
selected_rows,
all_total
Example:

"selected_rows"

filter
enum<string> | null

Archived-table marker. Use true when resolving an all selection so only soft-deleted sponsorships are restored.

Available options:
true
Example:

"true"

query
string | null

Current sponsorship-table search query used when resolving an all selection.

Example:

"Taylor"

status
enum<string> | null

Optional active commitment status filter retained for compatibility with table selections.

Available options:
current,
due
Example:

"current"

filterGroups
object[] | null

Advanced sponsorship filter groups used to resolve an all selection.

savedFilterId
integer | null

Saved sponsorship filter whose criteria should scope an all selection.

Example:

42

fields
string[] | null

Visible sponsorship fields forwarded to filtered selection resolution.

Example:
column_order
string[] | null

Current sponsorship worksheet column order forwarded to filtered selection resolution.

Example:

Response

One or more sponsorships were restored.

message
string

Human-readable restoration result.

Example:

"Sponsorships Successfully Restored."

restored_count
integer

Number of tenant-owned archived sponsorships restored.

Example:

2

skipped_count
integer

Number of selected IDs skipped because they were invalid, active, cross-tenant, or linked to an archived donor or recipient.

Example:

1

skipped_ids
integer<int64>[]

Selected relationship IDs that were not restored.

Example:
skipped
object[]

Per-ID skip details. Reasons include invalid_id, not_archived_or_not_owned, donor_inactive, recipient_inactive, and did_not_remain_active.