CreateDistributionRequest
The date and time to send the SMS
Determines how the survey will be sent out via SMS. Can be either Invite, Interactive, Reminder or Thankyou. Interactive means the questions are presented to the user one at a time in an interactive ping-pong type interactive-type session.
Possible values: [Invite, Interactive, Reminder, Thankyou]
ID of the survey to distribute to recipients
Possible values: Value must match regular expression ^SV_[a-zA-Z0-9]{11,15}$
Name for the SMS distribution.
Possible values: <= 100 characters
recipients object
This field will be ignored if "method" is "Reminder" or "Thankyou". You must provide either transactionBatchId or mailingListId. If you provide mailingListId, then you can optionally provide one of these fields: [contactId,sampleId,transactionId]
Mailing List ID for a batch distribution
Possible values: Value must match regular expression ^[a-zA-Z0-9]{1,4}_[a-zA-Z0-9]{11,15}$
Contact Lookup ID for an individual distribution. Contact Lookup ID can be obtained using Get Contact In Mailing List. See Get Contact In Mailing List
Possible values: Value must match regular expression ^(CTR|CGC|MLRP)_[a-zA-Z0-9]{11,15}$
Sample ID for subgroup from the same Mailing List ID
Possible values: Value must match regular expression ^[0-9a-zA-Z]{1,4}_[0-9a-zA-Z]{11,15}$
Transaction Batch ID. Read more about transactions
Possible values: Value must match regular expression ^BT_[a-zA-Z0-9]{11,15}$
Transaction ID. Read more about transactions
Possible values: Value must match regular expression ^CTR_[a-zA-Z0-9]{11,15}$
message object
ID of the message. The messageId is required in conjunction with the libraryId if no messageText is supplied. A message object is only required with the Invite, Reminder, and Thankyou methods.
Possible values: Value must match regular expression ^MS_[a-zA-Z0-9]{11,15}$
Library ID of the message. libraryId is required in conjunction with the messageId if no messageText is supplied. A message object is only required by "Invite" method.
Possible values: Value must match regular expression ^[a-zA-Z0-9]{1,4}_[a-zA-Z0-9]{11,15}$
Custom message text. Either messageText or messageId must be provided but not both. A message object is only required with the Invite, Reminder, and Thankyou methods.
Possible values: <= 10000 characters
ID of the distribution to send a Reminder or Thankyou distribution. Can be used only with these two methods.
Possible values: Value must match regular expression ^SMSD_[a-zA-Z0-9]{11,15}$
The date and time when the survey link expires
{
"sendDate": "2024-07-29T15:51:28.071Z",
"method": "Invite",
"surveyId": "string",
"name": "string",
"recipients": {
"mailingListId": "string",
"contactId": "string",
"sampleId": "string",
"transactionBatchId": "string",
"transactionId": "string"
},
"message": {
"messageId": "string",
"libraryId": "string",
"messageText": "string"
},
"parentDistributionId": "string",
"surveyLinkExpirationDate": "2024-07-29T15:51:28.071Z"
}