Create relative scheduled message
Creates a relative scheduled message. This allows scheduling messages on a different date for each contact, for example on their birthday, a certain number of days before an appointment, or a certain number of days after enrolling in a campaign.
Telerivet will automatically create a ScheduledMessage for each contact matching a RelativeScheduledMessage.
Relative scheduled messages can be created for a group or an individual contact, although dynamic groups are not supported. Only one of the parameters group_id, to_number, and contact_id should be provided.
With message_type=service, schedules an automated service (such as a poll). Any service that can be triggered for a contact can be scheduled via this method, whether or not the service actually sends a message.
Request
- Base URL: https://api.telerivet.com
- URL: https://api.telerivet.com/v1/projects/{project_id}/relative_scheduled
- Auth: one of:
- HTTP basic
- OAuth 2 (authorization code, authorization URL https://telerivet.com/oauth/authorize, token URL https://api.telerivet.com/oauth/token)
Path parameters
ID of the Project
Request body
Example request
{
"content": "Hi [[contact.name]], just following up!",
"group_id": "CG123123123123123123",
"time_of_day": "15:07",
"date_variable": "date",
"offset_scale": "D",
"offset_count": 3,
"rrule": "FREQ=MONTHLY",
"replace_variables": true
}Response
Successful response
Example response
{
"id": "SEfaf2411ed3584f08",
"content": "hello world!",
"time_of_day": "15:07",
"date_variable": "date",
"offset_scale": "D",
"offset_count": 3,
"rrule": "COUNT=1",
"timezone_id": "America/Los_Angeles",
"recipients_str": "Subscribers",
"route_id": "PN4d246818d0ecd1fa",
"service_id": "SV3d246818d0e3d1fb",
"message_type": "sms",
"time_created": 1395617416,
"project_id": "PJ2ad0100821a98bea"
}Changes
No recorded changes to this operation across all 1 revision of this API.