Update a channel
PUT/v3/channels/:id
Supported only for LINK, SMS, EMAIL and OFFLINE channels. schedule, relative_schedule only required when mode is RECURRING, RELATIVE_RECURRING respectively and sms, email, link properties only required when type is SMS, EMAIL, LINK and animation_direction can be provided when type is OFFLINE
Request
Path Parameters
Id of the channel
- application/json
Body
Array [
]
Array [
]
Possible values: <= 255 characters
Name of the channel
Possible values: [BLAST, RECURRING, RELATIVE_RECURRING]
Default value: BLAST
Mode of the channel, not required when type is LINK
Id of the survey
contacts
object[]
Possible values: >= 1, <= 20000
Email ID of the contact. Required based on account primary identifier / channel type.
Mobile number in E.164 format. Required based on account primary identifier / channel type.
Possible values: <= 255 characters
Unique identifier of the contact. Required based on account primary identifier.
Possible values: <= 255 characters
Reference ID of the anonymous contact
Possible values: <= 20
Id's of Contact Lists
Timestamp at which survey should be sent
Possible values: >= 1
Number of days after which survey should be shared
schedule
object
Possible values: [WEEKLY, MONTHLY, YEARLY]
config
object
Possible values: >= 1
Possible values: >= 1
Possible values: [0, 1, 2, 3, 4, 5, 6, 7], >= 1
relative_schedule
object
first_nps
object
Possible values: >= 1
Delay after which first survey to be shared
Possible values: [Days, Months, Hours]
Unit of the delay
Id of the contact property, only DATE type contact properties are allowed
Possible values: [NONE, EVERY_45_DAYS, EVERY_3_MONTHS, EVERY_6_MONTHS, EVERY_1_YEAR]
Repetition of survey sharing after first share
reminders
object[]
Array of reminders
Subject of the reminder, both {company_name} and {survey_link} variables are required when channel type is SMS
Body of the reminder. Not required for SMS channel type. Note:Placeholders are supported for Customer Experience (CX) surveys only.
Possible values: [NOT_RESPONDED, PARTIALLY_RESPONDED]
Type of the responders
Possible values: [Days, Weeks, Months]
Unit of the delay
Possible values: >= 1 and <= 365
Delay after which reminder to be sent. The delay cannot be more than 365 days, 52 weeks or 12 months.
properties
object
Properties of the reminder will be applicable for email reminders only.
sms
object
Message of sms, both {company_name} and {survey_link} variables are required.
For using SurveySparrow message service you need to agree the consent
Id of the custom target, default target will be taken if not given
Language of a specific Update API trigger
email
object
Subject of the email
properties
object
From address of the email
Set true to embed the first question in the email
Set true to show the custom footer in the email
Custom footer value
Set true to show SurveySparrow branding on email
Reply to address of the email
Deprecated, use triggerLanguage. Saves the language of an email channel. On update, returns 400 when sent with is_default false or with a different triggerLanguage
Language to send this update's survey in: a language code, or recipient_language to send each contact the survey in their own contact language (email channels only; needs the Share Surveys in Contact Language feature). Not validated on create. On update, returns 400 when the survey, the email or an existing reminder is not translated to the language. With recipient_language, contacts whose language cannot be used get English when the survey supports it, otherwise the survey's default language
Email channels only, needs triggerLanguage. true (default): triggerLanguage becomes the channel's language for later updates that do not send one. false: it applies to this update only
Pre-header of the Email
Id of the email theme
link
object
Title of the weblink channel
Description of the web link channel
Image link of the weblink channel, provide link for a JPEG or PNG image. Get best results when the image is 1200 x 630 pixels
Default value: true
If set to true, survey will be shared even if throttling is met
Only applicable for CX survey types
Set True for Activating the channel, Set False for Pausing the channel
Responses
- 200
Successful
- */*
- Schema
- Example (from schema)
Schema
data
object
Id of channel
Name of channel
Status of the share
Type of channel
warning
object
Possible values: [RECIPIENT_LANGUAGE_FALLBACK]
Warning code
Localised explanation
Language the unsupported contacts receive: English when the survey can be sent in it, otherwise the survey default language
Direct contacts whose language cannot be used
Emails of those contacts (at most 50)
True when more contacts were found than listed
True when contact lists were sent; their members are checked when the emails are created
Possible values: [request_time]
When the contacts were checked
True for a scheduled send, which is checked again when it runs
{
"data": {
"id": 1,
"name": "Email share 1",
"status": "ACTIVE",
"type": "EMAIL",
"properties": {}
},
"warning": {
"code": "RECIPIENT_LANGUAGE_FALLBACK",
"message": "string",
"fallback_language": "string",
"unsupported_language_contact_count": 0,
"unsupported_language_contacts": [
"string"
],
"unsupported_language_contacts_truncated": true,
"contact_lists_evaluated_at_send": true,
"evaluated_at": "request_time",
"may_change_before_send": true
}
}