Update Template
PUT
https://{{env}}.survey2connect.com/v2/api/templates/{{template_id}}
Path Parameters
Name
Type
Description
template_id
String
Headers
Name
Type
Description
Authorization
String
Bearer {access_token}
Request Body
Name
Type
Description
templatename
String
language
String
medium
String
status
String
message
Object
{
"_id": "6172580ac318d7126b2a7523",
"templateName": "Email Template 1",
"language": "EN",
"medium": "2,",
"created": "1635494793309",
"modified": "1635494793309",
"message": {
"type": 0,
"subjectEData": null,
"embeddedData": [
"SurveyLink",
"name"
],
"htmlBody": "<div><div>\n <style>\n @media only screen and (max-width: 1600px) {\n.message-box{\npadding:0px;}\n\n.main-container , .S2C , .content-footer , .button , .message-closing , .message-opening .message-title{\nfont-size:11px !important;\n}\n.message-closing , message-opening{\ntext-align:none;}\n}\n </style>\n <div class=\"main-container\" style=\"width: 100%;\">\n <div class=\"content\" style=\"width: 100%;\n background: #464747;\n max-height: 80px;\n padding-top: 20px;\">\n <div class=\"content-title\" style=\"color: #ffffff;\n text-align: center;\n margin-bottom: 20px;\n font-size: 20px;\n letter-spacing: 0.95px;\n font-family: 'Roboto Medium';\n position: inherit;\">App Testing</div>\n <div style=\"background: #464747; height: 80px;\"></div>\n </div>\n <div class=\"message-box\" style=\"min-height: 190px;\n margin: 0px auto;\n padding: 0px 38px;\n width: 75%;\n background-color: #ffffff;\n border: 1px solid #E4E8EE;\n position: inherit;\">\n <div class=\"message-title\" style=\"text-align: center;\n font-size: 14px;\n letter-spacing: 0.67px;\n font-family: 'Roboto Medium';\n color: #4A4A4A;\n margin: 15px 0px;\"></div>\n <div class=\"message-opening\" style=\"text-align: center;\n font-size: 12px;\n letter-spacing: 0.57px;\n font-family: 'Roboto Medium';\n color: #5a5a5a;\">\n \n </div>\n <div class=\"message-closing\" style=\"text-align: center;\n font-size: 12px;\n letter-spacing: 0.57px;\n font-family: 'Roboto Medium';\n color: #5a5a5a;\n margin: 15px 0px;\">\n <p>Dear {{e://name}} ,<br>This is a kind reminder for your feedback. We request you to kindly share your feedback, to serve you better<br><br> {{SurveyLink}} </p><p>Thanking You,<br>Regards<br>TATA AIG</p> </div>\n </div>\n <div class=\"footer\" style=\"margin-top: 30px;text-align: center;position: inherit;\">\n Share With:\n <span class=\"social\">\n\n <span> <img style=\"height: 13px;\" src=\"https://az1.survey2connect.com/en/assets/images/sign-In/s2c-img-facebook.png\" alt=\"fb\"></span>\n <span> <img style=\"height: 13px;\" src=\"https://az1.survey2connect.com/en/assets/images/manageTemplateAssets/twitter.png\" alt=\"twitter\"></span>\n <span> <img style=\"height: 13px;\" src=\"https://az1.survey2connect.com/en/assets/images/sign-In/s2c-img-google-plus.png\" alt=\"google\"></span>\n <span> <img style=\"height: 13px;\" src=\"https://az1.survey2connect.com/en/assets/images/sign-In/s2c-img-linkedin.png\" alt=\"linkden\"></span>\n </span>\n </div>\n <div class=\"ruler\" style=\"margin: 30px auto;height: 1px;background-color: #E4E8EE;width: 50%;position: inherit;\"></div>\n <div class=\"content-footer\" style=\"text-align: center;letter-spacing: 0.52px;color: #5A5A5A;font-size: 11px;font-family: 'Roboto Regular';position: inherit;\">\n Please do not forward this email as its associated link is unique to you.\n </div>\n <div class=\"S2C\" style=\"text-align: center; margin-top: 30px; font-size: 12px;font-family: 'Roboto Medium';color: #4a4a4a;position: inherit;\">\n <span> <img style=\"height: 20px;\" src=\"https://az1.survey2connect.com/en/assets/images/collector/logo.png\" alt=\"S2CLogo\"></span>\n </div>\n </div>\n </div>\n\n\n </div>",
"body": "",
"subj": "We want your opinion"
},
"status": 0,
"owner": {
"id": "614190c930eeb15b0da42268",
"typeOf": "User",
"careTaker": "614190c930eeb15b0da42268"
}
}
{
"err": {
"name": "bad request",
"message": "Template field is missing - templateName"
}
}
{
"error": {
"name": "unauthorized",
"message": "The authorization token was not provided"
}
}
{
"error": {
"name": "internal server error",
"message": "We couldn’t process your request"
}
}
Last updated
Was this helpful?