Update an entity scheduled report

PATCH/projects/{projectId}/entities/{entityId}/scheduledReports/{scheduledReportId}

Base URL: https://api.tinkermode.com

Update configuration of the scheduled report with the specified ID.

Authentication

Send an Authorization header of the form ModeCloud <AUTH_CODE>.

Must contain the key of a user or service account with permissions to update entity scheduled reports, or a project API key with admin permission.

Path parameters

NameTypeRequiredConstraintsDescription
projectIdintegerYesThe unique ID for a specified project.
entityIdstringYesEntity ID (unique within project)
scheduledReportIdintegerYesThe unique ID for a specific scheduled report.

Request body

Content type: application/json

PropertyTypeRequiredConstraintsDescription
contentsstringNoYAML configuration for report sections including entities and queries
descriptionstringNoDescription of the scheduled report
directDestinationarray<object>NoDirect rooms to send the report to
Properties of directDestination
PropertyTypeRequiredConstraintsDescription
idstringYesDirect room ID
enabledbooleanNoWhether the scheduled report is enabled
reportScheduleobjectNo
Properties of reportSchedule
PropertyTypeRequiredConstraintsDescription
expressionstringNoSchedule expression (e.g., cron expression)
timeZonestringNoTimezone for the schedule
typestringNoType of schedule (e.g., cron)
slackDestinationarray<object>NoSlack channels to send the report to
Properties of slackDestination
PropertyTypeRequiredConstraintsDescription
idstringYesSlack channel ID
teamsDestinationarray<object>NoMS Teams channels to send the report to
Properties of teamsDestination
PropertyTypeRequiredConstraintsDescription
idstringYesMS Teams channel ID
titlestringNoTitle of the scheduled report

Responses

204 Successfully updated the specified scheduled report.

401 Authorization is required to access this resource.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

403 Invalid parameters or permission denied.

404 Scheduled report not found.

429 Request failed because of rate limit.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

500 An unexpected error has occurred.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

503 The service is temporarily unavailable.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.