Create entity scheduled report

POST/projects/{projectId}/entities/{entityId}/scheduledReports

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

Create a new scheduled report for this entity.

Authentication

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

Must contain the key of a user or service account with permissions to create 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)

Request body

Content type: application/json

PropertyTypeRequiredConstraintsDescription
answerEngineobjectYes
Properties of answerEngine
PropertyTypeRequiredConstraintsDescription
assistantIdintegerYesID of the assistant to use for generating answers
maxConcurrentCallsintegerNodefault: 4Maximum number of concurrent calls to the assistant
contentsstringYesYAML configuration for report sections including entities and queries
descriptionstringNoDescription of the scheduled report
directDestinationarray<object>NoDirect rooms to send the report to (required for Direct assistants)
Properties of directDestination
PropertyTypeRequiredConstraintsDescription
idstringYesDirect room ID
enabledbooleanNodefault: trueWhether the scheduled report is enabled
projectIdintegerYesID of the project this report belongs to
reportScheduleobjectYes
Properties of reportSchedule
PropertyTypeRequiredConstraintsDescription
expressionstringYesSchedule expression (e.g., cron expression)
timeZonestringNoTimezone for the schedule
typestringYesType of schedule (e.g., cron)
slackDestinationarray<object>NoSlack channels to send the report to (required for Slack assistants)
Properties of slackDestination
PropertyTypeRequiredConstraintsDescription
idstringYesSlack channel ID
teamsDestinationarray<object>NoMS Teams channels to send the report to (required for MS Teams assistants)
Properties of teamsDestination
PropertyTypeRequiredConstraintsDescription
idstringYesMS Teams channel ID
titlestringYesTitle of the scheduled report

Responses

201 New scheduled report successfully created.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
answerEngineobjectYes
Properties of answerEngine
PropertyTypeRequiredConstraintsDescription
assistantIdintegerYesID of the assistant to use for generating answers
maxConcurrentCallsintegerNodefault: 4Maximum number of concurrent calls to the assistant
contentsstringYesYAML configuration for report sections
creationTimestringNoformat: date-timeWhen the report was created
descriptionstringNoDescription of the scheduled report
directDestinationarray<object>NoDirect rooms to send the report to
Properties of directDestination
PropertyTypeRequiredConstraintsDescription
idstringYesDirect room ID
namestringNoDirect room name
enabledbooleanNoWhether the scheduled report is enabled
idintegerYesUnique identifier for the scheduled report
projectIdintegerYesID of the project this report belongs to
reportScheduleobjectYes
Properties of reportSchedule
PropertyTypeRequiredConstraintsDescription
expressionstringYesSchedule expression (e.g., cron expression)
timeZonestringNoTimezone for the schedule
typestringYesType of schedule (e.g., cron)
slackDestinationarray<object>NoSlack channels to send the report to
Properties of slackDestination
PropertyTypeRequiredConstraintsDescription
idstringYesSlack channel ID
namestringNoSlack channel name
teamsDestinationarray<object>NoMS Teams channels to send the report to
Properties of teamsDestination
PropertyTypeRequiredConstraintsDescription
idstringYesMS Teams channel ID
namestringNoMS Teams channel name
titlestringYesTitle of the scheduled report
updateTimestringNoformat: date-timeWhen the report was last updated

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 Request failed because of invalid data or denied permission.

Content type: application/json

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

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.