You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api-docs.json
+12-1Lines changed: 12 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1718,7 +1718,7 @@
1718
1718
"type": "string"
1719
1719
},
1720
1720
"listIds": {
1721
-
"description": "To create a blast campaign, set <code>listIds</code> to an array of list IDs to which the campaign should be sent. To create a triggered campaign, omit <code>listIds</code> from the request body.",
1721
+
"description": "To create a blast campaign, set <code>listIds</code> to a non-empty array of list IDs to which the campaign should be sent. To create a triggered campaign, omit <code>listIds</code> from the request body.",
1722
1722
"items": {
1723
1723
"format": "int64",
1724
1724
"type": "integer"
@@ -1729,6 +1729,11 @@
1729
1729
"description": "The name to use in Iterable for the new campaign.",
1730
1730
"type": "string"
1731
1731
},
1732
+
"scheduleSend": {
1733
+
"description": "Whether to immediately schedule the blast campaign for sending. Defaults to <code>true</code>. Set to <code>false</code> to create the campaign without scheduling it (the campaign can be scheduled later using <code>POST /api/campaigns/{campaignId}/schedule</code>). Only applies to blast campaigns.",
1734
+
"example": false,
1735
+
"type": "boolean"
1736
+
},
1732
1737
"sendAt": {
1733
1738
"description": "A scheduled send time for a new blast campaign, up to 21 days in the future. Format: <code>YYYY-MM-DD HH:MM:SS</code> (UTC). For more details, see our <a href=\"https://support.iterable.com/hc/articles/204780579#post-api-campaigns-create\">API Overview</a>.",
.describe("Array of list IDs to which the campaign should be sent"),
167
+
scheduleSend: z
168
+
.boolean()
169
+
.default(false)
170
+
.describe(
171
+
"Whether to immediately schedule the blast campaign for sending. Set to true to schedule the campaign on creation. When false, the campaign can be scheduled later using POST /api/campaigns/{campaignId}/schedule."
0 commit comments