Update Analytics Publication
Change a publication or turn it on or off. Only the fields you send change. Activating needs a complete schedule and, for Slack and Teams, a connection and destination. Adding externalRecipients sends the page to people outside your organization.
Path
The page id, from List Analytics Pages.
The publication id, from List Analytics Publications.
Headers
Optional. The id of the organization to act in. Leave it out to act in the API key's own organization. Here a key acts in another organization only as one of its members: with "Use this key across all of your organizations" on, in an organization its creator belongs to with a role. Child organizations and MindCloud staff access do not reach this endpoint. Every response's X-Company-Id header names the organization it acted in. See Organizations.
Body
What it is called.
What it is called, such as "Weekly revenue".
Where it sends: email, slack or teams. Defaults to email on create.
Where it sends. Changing it clears the connection and destination; the recipients stay.
emailEmail to the recipients, from MindCloud or from a Gmail or Outlook connection.slackA message in a Slack channel, sent with a Slack connection.teamsA message in a Microsoft Teams channel, sent with a Microsoft Teams connection.
fixed, interval, monthly or once.
How the schedule is set.
fixedOn the weekdays in days, at each time in runTimes.intervalEvery intervalMinutes, starting at the first time in runTimes.monthlyOn the days of the month in monthDays, at each time in runTimes.onceOnce, on the date in runDates, at the time in runTimes.
For interval: minutes between sends, 360 to 43200.
For interval: minutes between sends, 360 (six hours) to 43200 (thirty days).
For fixed: weekdays, 0 (Sunday) to 6 (Saturday).
For monthly: days of the month, 1 to 30, or -1 for the last day.
For once: the date, as YYYY-MM-DD.
Times of day, as HH:MM in timeZone.
Times of day, zero-padded HH:MM in timeZone, like 09:00. Activating needs at least one.
An IANA time zone, or null to follow the organization's.
An IANA time zone, such as America/New_York, or null to follow the organization's time zone (the default).
Member recipients by user id, from List Members. Replaces the list.
Member recipients by user id, from List Members. Replaces the list. At most 50.
Addresses outside your organization. Each gets the page by email. Replaces the list.
Email addresses outside the organization. Each one gets the page by email, from outside your organization. Replaces the list. At most 50.
The email subject. Defaults to the page's name.
The email subject. Leave it out to use the page's name.
The connection to send through, from List Connections. Email: Gmail or Outlook, or null for MindCloud's sender. Slack and teams: one of that app.
The connection to send through, from List Connections, or null. Email: a Gmail or Outlook connection, or null for MindCloud's own sender. Slack and teams need one of that app. Its owner must let the key's creator use it.
For slack and teams: where it posts, with ids from Resolve Universal Lookup.
For slack and teams: where it posts. Find the ids with Resolve Universal Lookup on the app. Replaces the stored destination.
channelIdstringSlack and Teams: the channel id to post in.
channelLabelstringSlack and Teams: the channel name, shown in the app.
teamIdstringTeams: the team id.
teamLabelstringTeams: the team name, shown in the app.
Its own filter values, by page variable name (from Get Analytics Page). Replaces the stored map; {} goes back to the page's defaults.
Its own filter values, by page variable name (see Get Analytics Page), each as the page's link carries it. Replaces the stored map; {} goes back to the page's defaults.
true schedules it, false pauses it.
true schedules it, false pauses it. Activating needs a complete schedule and, for slack and teams, a connection and destination.
Members who unsubscribed and should get it again, only with their agreement.
Members who unsubscribed and should get it again, by user id. Only with their agreement.
Outside addresses that unsubscribed and should get it again, only with their agreement.
Outside addresses that unsubscribed and should get it again. Only with their agreement.
Response fields
idstringThe publication's id.
pageIdstringThe page it sends, from List Analytics Pages.
namestringIts name. Null until one is given.
isActivebooleanTrue when it sends on its schedule. A new publication starts paused.
channelstringWhere it sends.
emailEmail to the recipients, from MindCloud or from a Gmail or Outlook connection.slackA message in a Slack channel, sent with a Slack connection.teamsA message in a Microsoft Teams channel, sent with a Microsoft Teams connection.
scheduleTypestringHow its schedule is set.
fixedOn the weekdays in days, at each time in runTimes.intervalEvery intervalMinutes, starting at the first time in runTimes.monthlyOn the days of the month in monthDays, at each time in runTimes.onceOnce, on the date in runDates, at the time in runTimes.
intervalMinutesnumberFor interval: minutes between sends, 360 (six hours) to 43200 (thirty days).
daysarray of numberFor fixed: the weekdays it sends on, 0 (Sunday) to 6 (Saturday).
monthDaysarray of numberFor monthly: the days of the month it sends on, 1 to 30, or -1 for the last day.
runDatesarray of stringFor once: the date it sends on, as YYYY-MM-DD.
runTimesarray of stringThe times of day it sends at, as HH:MM in timeZone.
timeZonestringThe IANA time zone its times are in, such as America/New_York.
isOrganizationTimeZonebooleanTrue when timeZone is the organization's time zone and changes with it; false when one was set for this publication.
nextRunOndateWhen it sends next. Null while it is paused or has nothing left to send.
autoPausedOndateWhen MindCloud paused it after failed sends. Null when it was not.
autoPauseReasonstringWhy MindCloud paused it. Null when it was not.
recipientUserIdsarray of stringMember recipients, by user id (from List Members).
externalRecipientsarray of stringRecipients outside the organization, by email address.
unsubscribedRecipientUserIdsarray of stringMembers who unsubscribed with the link in its email, by user id. They get nothing until resubscribed.
unsubscribedExternalRecipientsarray of stringOutside addresses that unsubscribed with the link in its email.
subjectstringThe email subject. Null uses the page's name.
connectionIdstringThe connection it sends through, from List Connections. Null for email from MindCloud's own sender.
destinationobjectFor slack and teams: where it posts. Null for email.
channelIdstringSlack and Teams: the channel id it posts in. Null for email.
channelLabelstringSlack and Teams: the channel name, as picked. Null for email.
teamIdstringTeams: the team id. Null otherwise.
teamLabelstringTeams: the team name, as picked. Null otherwise.
variablesobjectIts own filter values, by page variable name, as the page's link carries them. Empty uses the page's defaults.
createdOndateWhen it was created.
updatedOndateWhen it last changed.