Skip to main content
POST
Preview an unsaved report definition

Authorizations

Authorization
string
header
required

Passport bearer token authentication for legacy admin sessions.

Query Parameters

page
integer
default:1

Page.

Required range: x >= 1
limit
integer
default:25

Rows per page; per_page is a compatibility alias.

Required range: 1 <= x <= 100

Search.

Maximum string length: 1000
group
string

Optional groupable field key.

range
string

Runtime date preset, or custom_range with start and end.

start
string<date>

Start.

end
string<date>

End.

sort
string

Runtime field key and optional direction, such as created_at:desc.

include_rollups
boolean

Include aggregate rollups and groups with worksheet rows.

Body

application/json

Request fields accepted by this operation. Omitted optional properties retain the behavior described above.

name
string
required

Validation: required|string|max:255.

Maximum string length: 255
Example:

"Follow up with trip participants"

module_id
integer
required

One of the module IDs returned by reports/meta.

Example:

1

hysform_id
any
required

Required source context ID. For donor sources this is a donor form; for recipient and sponsorship sources it is a program. Some modules support all.

sponsorships
any | null

Optional compatibility source discriminator.

type
enum<string> | null

Validation: nullable|string|in:view,report.

Available options:
view,
report,
null
Example:

"view"

fields
object[] | null

Field/operator/value filters validated against the chosen module, context and operator capabilities. filterGroups takes precedence over fields.

filterGroups
object[] | null

Field/operator/value filters validated against the chosen module, context and operator capabilities. filterGroups takes precedence over fields.

column_fields
string[] | null
column_order
string[] | null
date_range
object | null

Saved date preset and optional custom range; validated by the report date-range contract.

sort_key
string | null

Validation: nullable|string.

sort_order
enum<string> | null

Validation: nullable|string|in:asc,desc.

Available options:
asc,
desc,
null
Example:

"asc"

search_query
string | null

Validation: nullable|string|max:1000.

Maximum string length: 1000
snapshot
boolean | null

Validation: nullable|boolean.

Example:

false

Response

Preview an unsaved report definition response.

data
object