Skip to content

Create Countdown

Tool name: create-countdown

Creates a countdown: terminationType 1 is a fixed expiry and needs terminationDateTime, 2 a contact field of type date and time (date-only fields are refused), 3 tagging-based expiry. Defaults to the orange template and terminationType 1, so a call without terminationDateTime is refused. Expiry lies at most 30 days ahead; dates use server time and are kept to the minute, seconds are dropped.

Input schema

settingsobjectrequired
accountIdnull or integer, >= 1
Default:null
Input example
{ "settings": { "name": "string", "notes": "string", "metaLabels": [ "string" ], "template": "round_orange", "terminationType": 1, "terminationDateTime": "string", "terminationCustomFieldID": "string", "terminationTagIDs": { "ids": [ 1 ], "new": [] }, "terminationTagDurationDays": 0, "terminationTagDurationHours": 0, "customExpiredImage": "string", "targetURL": "string", "targetURLExpired": "string", "subscriberParameterName": "string", "emailParameterName": "string" }, "accountId": null }

Output schema

accountIdintegerrequired
idintegerrequired
settingsobjectrequired
editUrlstringrequired
placeholderstringrequired
Output example
{ "accountId": 0, "id": 0, "settings": { "name": "string", "notes": "string", "metaLabels": [ "string" ], "template": "round_orange", "terminationType": 1, "terminationDateTime": "string", "terminationCustomFieldID": "string", "terminationTagIDs": { "ids": [ 1 ], "new": [] }, "terminationTagDurationDays": 0, "terminationTagDurationHours": 0, "customExpiredImage": "string", "targetURL": "string", "targetURLExpired": "string", "subscriberParameterName": "string", "emailParameterName": "string" }, "editUrl": "string", "placeholder": "string" }