Skip to main content
POST
Save a sponsorship worksheet definition

Authorizations

Authorization
string
header
required

Passport bearer token authentication for legacy admin sessions.

Body

application/json
client_id
integer
required

Required compatibility input; the authenticated organization always overrides this value.

Example:

42

hysform_id
required

Required source donor form/program ID; all normalizes to zero. Existing definitions must retain their original source context.

Required range: x >= 0
Example:

42

module_id
enum<integer>
required

Required source module for this endpoint.

Available options:
3
Example:

3

sponsorships
integer | null

Sponsorship scope (default normalized program context) or nonnegative donation tab; null is allowed.

Example:

42

view_id
integer | null

Existing source-matching saved view/report to update; omitted creates a new definition.

Example:

42

name
string | null

Definition display label; omission resets saved-view name to null on legacy updates.

Example:

"Example"

type
enum<string> | null

Definition kind; existing reports remain reports.

Available options:
view,
report,
null
Example:

"view"

date_range
object | null
frequency
enum<string> | null

Required when type=report; named frequency or legacy numeric string.

Available options:
daily,
weekly,
biweekly,
monthly,
quarterly,
3_months,
semiannual,
6_months,
annual,
1_year,
once,
0,
1,
2,
3,
4,
5,
6,
7,
14,
null
Example:

"weekly"

date_time
string<date-time> | null

Required when type=report; initial scheduled occurrence, preferably ISO8601 with offset.

Example:

"2026-12-01T09:00:00+03:00"

timezone
string | null

Valid IANA timezone, excluding Factory.

Maximum string length: 64
Example:

"Africa/Kampala"

recipient_emails
string<email>[] | null

Scheduled report recipient email.

export_locale
enum<string> | null

Scheduled tax-treatment export locale; default en.

Available options:
en,
es,
fr,
de,
nl,
ar,
zhCn,
null
Example:

"en"

fields
(string | object)[] | null

Stored filter groups or legacy column keys, depending on module/view contract.

Legacy saved-view column key.

Example:

"email"

filterGroups
object[] | null

Report alias always replaces fields; donation view maps only when fields absent.

column_fields
string[] | null

Available worksheet field key.

column_order
string[] | null

Available worksheet field key.

sort_key
string | null

Available sortable field; unavailable donor/donation/sponsorship sort clears sort state.

Example:

"Example"

sort_order
enum<string> | null

Direction; sponsorship input is normalized before validation.

Available options:
asc,
desc,
null
Example:

"asc"

search_query
string | null

Stored search string.

Maximum string length: 1000
Example:

"Jane"

searchQuery
string | null

Donation saved-view compatibility alias.

Maximum string length: 1000
Example:

"Jane"

Optional related worksheet configuration.

schedule

Closed schedule-intent.v1 instant or recurrence. When also providing legacy date_time/timezone they must identify the same first UTC occurrence. Report scheduling rejects explicit weekdays and recommendation/legacy source.

duration
integer | null

Initial schedule legacy duration hint; defaults zero.

Example:

0

start_date
string<date-time> | null

Initial schedule compatibility date when date_time absent; report validation still requires date_time when type=report.

Example:

"2026-10-20T12:00:00Z"

Response

Save a sponsorship worksheet definition completed.

message
string

Create/update result.

Example:

"Filter Preferences Saved"

data
object