Skip to main content
POST
Create a custom report

Authorizations

Authorization
string
header
required

Supabase JWT — Authorization: Bearer <token>.

Body

application/json
definition
object
required

A custom report: report-wide filters and up to 12 blocks. Read report-catalog first for the dataset, field and measure ids.

Example:
merchant_id
string<uuid>

Optional merchant to act on. Admins and sub-merchant operators only; other callers always use their token's merchant.

Response

Report created.

id
string<uuid>
required
version
integer
required

Send it back with the next update.

published
boolean
required

false when the change was stored as a draft the owner publishes in the admin.

admin_url
string
required

Open the report in the JobMojito admin.

{key}
unknown