Skip to main content
PUT
Update ReportDefinition
Updates an existing ReportDefinition record. You must include the Id of the record to update along with all required fields.

Authentication

This endpoint requires OAuth2 authentication. Include a valid bearer token in the Authorization header. The authenticated user must be a full unrestricted administrator or have the ReportDefinition-Edit role.

Request Body

Required Fields

integer
required
The Id of the ReportDefinition record to update.
integer
required
ID of the business that owns this report.
string
required
Report name shown in the library.
string
required
ReportQuery JSON document (version 1). Use report_catalog to discover entities and field paths and report_query to test the query before saving..
integer
required
Number of times the report has been run.

Optional Fields

string
Optional description of what the report shows.
string
Folder used to group reports in the library (e.g. Bookings, Billing).
string
VisualizationDocument JSON: { “type”: “table|number|bar|line|area|pie”, “settings”: { … } }.
boolean
Visible to every user of the business; when false only the owner sees it.
integer
User who created the report (set automatically).
string
UTC time the report was last run.

Code Examples

Response

200

integer
HTTP status code. 200 on success.
string
A human-readable message confirming the update.
object
Contains the Id of the updated record.
boolean
true if the reportdefinition was updated successfully.
array
null on success.
Example Response

400

string
A summary of the validation error(s), in the format PropertyName: error message.
any
null on validation failure.
object[]
Array of validation errors.
boolean
false when the request fails validation.
Example Response