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 (every block needs an id and a type; measures are measure ids as strings, at least one). Format, rules and examples: https://developer.jobmojito.com/api-reference/reports/create-a-custom-report.md

Example:
merchant_id
string<uuid>

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

report_id
string<uuid>

Optional: replace the definition of this saved report instead of creating one. Needs version.

version
integer

With report_id: the version you read (get_report / list_reports). A stale version is refused with 409.

Required range: x >= 1
target
enum<string>

With report_id: published (default) or draft. A private report always publishes. Through the MCP server a shared report always gets a draft that its owner publishes in the admin.

Available options:
published,
draft

Response

Report created (or, with report_id, saved).

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