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 [
]
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 when channel type is EMAIL
Mobile number in E.164 format, required when channel type is SMS
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: >= 1
Delay after which reminder to be sent
Possible values: [Days, Weeks, Months]
Unit of the delay
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
email
object
Subject of the email
properties
object
From address of the email
This will always be True for CX surveys
Custom footer value
Set true to show SurveySparrow branding on email
Reply to address of the email
Language of an email channel
Language of a specific Update API trigger
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
Only applicable for EMAIL channels. Does not override throttling — a throttled contact never receives the invite either way. If false, the request fails immediately with a 409 listing the throttled contacts. If true (default), the request succeeds, but throttled contacts are still blocked at send time and recorded in share analytics.
Controls whether anonymous (no email/contact) responses are accepted for this channel. Applies to all channel types, not just CX — for CX survey types specifically, this cannot be set to false once the Anonymous Contact feature is enabled.
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
{
"data": {
"id": 1,
"name": "Email share 1",
"status": "ACTIVE",
"type": "EMAIL",
"properties": {}
}
}