survey_id required | integer The id of the target survey. Tip: survey id is the number you can see in the build phase of that survey after " /survey " in the URL. |
some description
required | Array of objects <= 5000 items Each object represents map of variable names to variable values related to a respondent to be encrypted. Keys are variable names and values are variable values. For example, if I have two variables named |
{- "values": [
- {
- "name": "Alice",
- "land": "Wonder land",
- "is_unique": true
}
]
}
{- "urls": [
- "https://survey.porsline.ir/s/{survey_code}/?qs={hash 1}"
]
}
survey_id required | integer The id of the target survey. Tip: survey id is the number you can see in the build phase of that survey after " /survey " in the URL. |
import requests import json url = "https://survey.porsline.ir/api/surveys/561934/variables/" payload = "" headers = { 'Authorization': 'API-Key ****************************', 'Content-Type': 'application/json' } response = requests.request("GET", url, headers=headers, data=payload) print(response.text)
[- {
- "id": 0,
- "name": "string",
- "variable_source": 0,
- "type": 0,
- "has_response": true
}
]
survey_id required | integer The id of the target survey. Tip: survey id is the number you can see in the build phase of that survey after " /survey " in the URL. |
id | integer <int32> Variable's ID |
name required | string Variable's name |
variable_source required | integer 0 if its source is query string and 0 for other sources |
type | integer 1 if its type is string and 2 if its type is integer |
has_response | boolean |
[- {
- "id": 0,
- "name": "string",
- "variable_source": 0,
- "type": 0,
- "has_response": true
}
]
"string"
import requests import json url = "https://survey.porsline.ir/api/folders/" payload = "" headers = { 'Authorization': 'API-Key ****************************', 'Content-Type': 'application/json' } response = requests.request("GET", url, headers=headers, data=payload) print(response.text)
[- {
- "id": 0,
- "order": 0,
- "name": "string",
- "shared_by": {
- "email": "user@example.com",
- "first_name": "string",
- "last_name": "string",
- "user_type": 1
}, - "shared_with": [
- {
- "email": "user@example.com",
- "first_name": "string",
- "last_name": "string",
- "sub_user": 0
}
], - "surveys": [
- {
- "id": 0,
- "name": "string",
- "folder_id": 0,
- "language": 1,
- "created_date": "2019-08-24T14:15:22Z",
- "active": true,
- "is_stopped": true,
- "views": 0,
- "submitted_responses": 0,
- "preview_code": "string",
- "report_code": "string",
- "url_slug": "string",
- "is_template": true,
- "question_count": 0,
- "theme": {
- "id": 0,
- "order": 0,
- "background_color": "string",
- "question_color": "string",
- "answer_color": "string",
- "button_color": "string",
- "accent_color": "string",
- "font_family": 1,
- "font_size": 13,
- "background_image": {
- "id": 0,
- "url": "string",
- "thumbnail_url": "string"
}, - "background_image_id": 0,
- "background_image_repeat": 1,
- "background_image_brightness": 100,
- "background_image_fit": 1,
- "background_image_position": 1,
- "background_image_size_percentage": 100,
- "is_public": false,
- "thumbnail_url": "string"
}, - "subdomain": {
- "id": 0,
- "subdomain": "string",
- "is_active": true
}
}
]
}
]
name required | string [ 1 .. 100 ] characters The name of the new folder |
order | integer The folder's order. if not sent, the order will be set to highest |
{- "name": "string",
- "order": 0
}
{- "id": 0,
- "order": 0,
- "name": "string",
- "shared_by": {
- "email": "user@example.com",
- "first_name": "string",
- "last_name": "string",
- "user_type": 1
}, - "shared_with": [
- {
- "email": "user@example.com",
- "first_name": "string",
- "last_name": "string",
- "sub_user": 0
}
], - "surveys": [
- {
- "id": 0,
- "name": "string",
- "folder_id": 0,
- "language": 1,
- "created_date": "2019-08-24T14:15:22Z",
- "active": true,
- "is_stopped": true,
- "views": 0,
- "submitted_responses": 0,
- "preview_code": "string",
- "report_code": "string",
- "url_slug": "string",
- "is_template": true,
- "question_count": 0,
- "theme": {
- "id": 0,
- "order": 0,
- "background_color": "string",
- "question_color": "string",
- "answer_color": "string",
- "button_color": "string",
- "accent_color": "string",
- "font_family": 1,
- "font_size": 13,
- "background_image": {
- "id": 0,
- "url": "string",
- "thumbnail_url": "string"
}, - "background_image_id": 0,
- "background_image_repeat": 1,
- "background_image_brightness": 100,
- "background_image_fit": 1,
- "background_image_position": 1,
- "background_image_size_percentage": 100,
- "is_public": false,
- "thumbnail_url": "string"
}, - "subdomain": {
- "id": 0,
- "subdomain": "string",
- "is_active": true
}
}
]
}
folder_id required | string Selected folder id |
import requests import json url = "https://survey.porsline.ir/api/folders/8/" payload = "" headers = { 'Authorization': 'API-Key ****************************', 'Content-Type': 'application/json' } response = requests.request("GET", url, headers=headers, data=payload) print(response.text)
{- "id": 0,
- "order": 0,
- "name": "string",
- "shared_by": {
- "email": "user@example.com",
- "first_name": "string",
- "last_name": "string",
- "user_type": 1
}, - "shared_with": [
- {
- "email": "user@example.com",
- "first_name": "string",
- "last_name": "string",
- "sub_user": 0
}
], - "surveys": [
- {
- "id": 0,
- "name": "string",
- "folder_id": 0,
- "language": 1,
- "created_date": "2019-08-24T14:15:22Z",
- "active": true,
- "is_stopped": true,
- "views": 0,
- "submitted_responses": 0,
- "preview_code": "string",
- "report_code": "string",
- "url_slug": "string",
- "is_template": true,
- "question_count": 0,
- "theme": {
- "id": 0,
- "order": 0,
- "background_color": "string",
- "question_color": "string",
- "answer_color": "string",
- "button_color": "string",
- "accent_color": "string",
- "font_family": 1,
- "font_size": 13,
- "background_image": {
- "id": 0,
- "url": "string",
- "thumbnail_url": "string"
}, - "background_image_id": 0,
- "background_image_repeat": 1,
- "background_image_brightness": 100,
- "background_image_fit": 1,
- "background_image_position": 1,
- "background_image_size_percentage": 100,
- "is_public": false,
- "thumbnail_url": "string"
}, - "subdomain": {
- "id": 0,
- "subdomain": "string",
- "is_active": true
}
}
]
}
folder_id required | string Selected folder id |
name required | string [ 1 .. 100 ] characters The name of the folder |
order | integer The folder's order. if not sent, the order will be set to highest |
{- "name": "string",
- "order": 0
}
{- "id": 0,
- "order": 0,
- "name": "string"
}
folder_id required | string Selected folder id |
name | string [ 1 .. 100 ] characters The name of the folder |
order | integer The folder's order. if not sent, the order will be set to highest |
{- "name": "string",
- "order": 0
}
{- "id": 0,
- "order": 0,
- "name": "string"
}
folder_id required | string Selected folder id |
import requests import json url = "https://survey.porsline.ir/api/folders/8/" payload = "" headers = { 'Authorization': 'API-Key ****************************', 'Content-Type': 'application/json' } response = requests.request("DELETE", url, headers=headers, data=payload) print(response.text)
survey_id required | integer The id of the target survey. Tip: survey id is the number you can see in the build phase of that survey after " /survey " in the URL. |
import requests import json url = "https://survey.porsline.ir/api/surveys/561934/settings/" payload = "" headers = { 'Authorization': 'API-Key ****************************', 'Content-Type': 'application/json' } response = requests.request("GET", url, headers=headers, data=payload) print(response.text)
{- "survey": {
- "name": "Porsline Survey",
- "language": 1,
- "is_stopped": true
}, - "authentication_needed": true,
- "porsline_auth": true,
- "porsline_auth_no_spam": true,
- "porsline_auth_domains": [
- "*@porsline.ir",
- "*@team.porsline.ir"
], - "code_auth": true,
- "code_auth_is_unique": true,
- "code_authentication_file_name": "string",
- "auth_description": "string",
- "captcha_needed": true,
- "hidden_responder_details": true,
- "privacy_preserving_message_enabled": true,
- "no_spam": true,
- "tag_spam": true,
- "location_is_active": true,
- "location_is_required": true,
- "location_description": "string",
- "hide_next_button": true,
- "hide_previous_button": true,
- "hide_progressbar": true,
- "expiration_date": "2019-08-24",
- "responding_ duration": "01:20:00",
- "edit_response_enabled": true,
- "branding_removal": true
}
survey_id required | integer The id of the target survey. Tip: survey id is the number you can see in the build phase of that survey after " /survey " in the URL. |
object Survey's settings | |
authentication_needed | boolean Enterprise feature |
porsline_auth | boolean Enterprise feature |
porsline_auth_no_spam | boolean Enterprise feature |
porsline_auth_domains | Array of strings[ items [ 1 .. 60 ] characters ] Enterprise feature |
code_auth | boolean Enterprise feature |
code_auth_is_unique | boolean Enterprise feature |
code_authentication_file_name | string [ 1 .. 500 ] characters Enterprise feature |
auth_description | string [ 1 .. 1000 ] characters Enterprise feature |
captcha_needed | boolean Enterprise feature |
hidden_responder_details | boolean Enterprise feature |
privacy_preserving_message_enabled | boolean Enterprise feature |
no_spam | boolean Pro feature |
tag_spam | boolean Pro feature |
location_is_active | boolean Enterprise feature |
location_is_required | boolean Enterprise feature |
location_description | string [ 1 .. 1000 ] characters Enterprise feature |
hide_next_button | boolean Whether to hide next button for responders |
hide_previous_button | boolean Whether to hide previous button for responders |
hide_progressbar | boolean Whether to hide progress bar for responders |
expiration_date | string <date> The date to close the survey. must be after today |
responding_ duration | string <duration> The time each responder has to respond to the survey |
edit_response_enabled | boolean Enterprise feature |
branding_removal | boolean Enterprise feature |
{- "survey": {
- "name": "Porsline Survey",
- "language": 1,
- "is_stopped": true
}, - "authentication_needed": true,
- "porsline_auth": true,
- "porsline_auth_no_spam": true,
- "porsline_auth_domains": [
- "*@porsline.ir",
- "*@team.porsline.ir"
], - "code_auth": true,
- "code_auth_is_unique": true,
- "code_authentication_file_name": "string",
- "auth_description": "string",
- "captcha_needed": true,
- "hidden_responder_details": true,
- "privacy_preserving_message_enabled": true,
- "no_spam": true,
- "tag_spam": true,
- "location_is_active": true,
- "location_is_required": true,
- "location_description": "string",
- "hide_next_button": true,
- "hide_previous_button": true,
- "hide_progressbar": true,
- "expiration_date": "2019-08-24",
- "responding_ duration": "01:20:00",
- "edit_response_enabled": true,
- "branding_removal": true
}
survey_id required | integer The id of the target survey. Tip: survey id is the number you can see in the build phase of that survey after " /survey " in the URL. |
page | string Default: 1 Page number |
page_size | string Default: 500 Page size |
import requests import json url = "https://survey.porsline.ir/api/surveys/561934/settings/authentication-codes/?page=1&page_size=1000" payload = "" headers = { 'Authorization': 'API-Key ****************************', 'Content-Type': 'application/json' } response = requests.request("GET", url, headers=headers, data=payload) print(response.text)
{- "count": 3,
- "next": null,
- "previous": null,
- "results": [
- "code_1",
- "code_2",
- "code_3"
]
}
survey_id required | integer The id of the target survey. Tip: survey id is the number you can see in the build phase of that survey after " /survey " in the URL. |
[- "code_1",
- "code_2",
- "code_3"
]
[- "code_1",
- "code_2",
- "code_3"
]
survey_id required | integer The id of the target survey. Tip: survey id is the number you can see in the build phase of that survey after " /survey " in the URL. |
If there is no body, all the codes will be deleted
[ ]
survey_id required | integer The id of the target survey. Tip: survey id is the number you can see in the build phase of that survey after " /survey " in the URL. |
{- "subdomain": {
- "id": 0,
- "subdomain": "string",
- "is_active": true
}, - "shared_by": {
- "email": "user@example.com",
- "first_name": "string",
- "last_name": "string",
- "user_type": 1
}, - "name": "string",
- "folder_id": 0,
- "language": "string",
- "active": true,
- "closed": true,
- "deleted": true,
- "preview_code": "string",
- "report_code": "string",
- "submitted_responses": 0,
- "theme": {
- "id": 0,
- "order": 0,
- "background_color": "string",
- "question_color": "string",
- "answer_color": "string",
- "button_color": "string",
- "accent_color": "string",
- "font_family": 1,
- "font_size": 13,
- "background_image": {
- "id": 0,
- "url": "string",
- "thumbnail_url": "string"
}, - "background_image_id": 0,
- "background_image_repeat": 1,
- "background_image_brightness": 100,
- "background_image_fit": 1,
- "background_image_position": 1,
- "background_image_size_percentage": 100,
- "is_public": false,
- "thumbnail_url": "string"
}, - "settings": {
- "authentication_needed": false,
- "porsline_auth": false,
- "code_auth": false,
- "edit_response_enabled": false,
- "show_answer_sheet_enabled": false,
- "show_answer_sheet_to_responder": false,
- "show_answer_key_after_response_submit": false,
- "show_answer_key_after_survey_stop": false,
- "phone_number_auth": false,
- "phone_number_auth_is_unique": true,
- "phone_numbers_limited": false,
- "responding_duration_type": 1,
- "questions_responding_duration": "string"
}, - "questions": [
- [
- {
- "id": 0,
- "order": 0,
- "second_operand": {
- "id": 0,
- "type": 1,
- "value": "string"
}, - "logical_operator": 1,
- "arithmetic_operator": 1
}
]
], - "variables": [
- {
- "id": 0,
- "name": "string",
- "type": 0,
- "variable_source": 0,
- "has_response": true
}
], - "welcome": [
- {
- "id": 0,
- "title": "string",
- "html_title": "string",
- "type": 1,
- "image_video_active": false,
- "image_or_video": 1,
- "image_path": "string",
- "image_name": "string",
- "video_url": "string",
- "show_charts": true,
- "description_text_active": false,
- "description_text": "string",
- "html_description_text": "string",
- "related_group": 0,
- "question_number_is_hidden": false,
- "responding_duration": "string",
- "title_active": true,
- "description_active": false,
- "description": "string",
- "enter_text": "string"
}
], - "appreciations": [
- {
- "id": 0,
- "title": "string",
- "html_title": "string",
- "type": 1,
- "image_video_active": false,
- "image_or_video": 1,
- "image_path": "string",
- "image_name": "string",
- "video_url": "string",
- "show_charts": true,
- "description_text_active": false,
- "description_text": "string",
- "html_description_text": "string",
- "related_group": 0,
- "question_number_is_hidden": false,
- "responding_duration": "string",
- "share_link_active": false,
- "is_default": true,
- "link_active": true,
- "link_button_text": "string",
- "link_type": 1,
- "link": 0,
- "reload_active": false,
- "reload_time": 10
}
]
}
survey_id required | integer The id of the target survey. Tip: survey id is the number you can see in the build phase of that survey after " /survey " in the URL. |
title required | string <= 1500 characters |
html_title | string <= 3000 characters |
type required | integer <int32> [ 1 .. 13 ] |
image_video_active | boolean Default: false |
image_or_video | integer Default: 1 Enum: 1 2 |
image_path | string <url> |
image_name | string <= 500 characters |
video_url | string <url> <= 500 characters |
show_charts | boolean Default: true |
description_text_active | boolean Default: false |
description_text | string <= 2500 characters |
html_description_text | string <= 5000 characters |
related_group | integer <int32> related group question Id |
question_number_is_hidden | boolean Default: false |
prior_question | integer <int32> Prior question Id to place question after that |
responding_duration | string A duration string like, "00:03:20" |
title_active | boolean Default: true |
description_active | boolean Default: false |
description | string <= 2500 characters |
enter_text | string <= 80 characters |
{- "title": "string",
- "html_title": "string",
- "type": 1,
- "image_video_active": false,
- "image_or_video": 1,
- "image_path": "string",
- "image_name": "string",
- "video_url": "string",
- "show_charts": true,
- "description_text_active": false,
- "description_text": "string",
- "html_description_text": "string",
- "related_group": 0,
- "question_number_is_hidden": false,
- "prior_question": 0,
- "responding_duration": "string",
- "title_active": true,
- "description_active": false,
- "description": "string",
- "enter_text": "string"
}
{- "id": 0,
- "title": "string",
- "html_title": "string",
- "type": 1,
- "image_video_active": false,
- "image_or_video": 1,
- "image_path": "string",
- "image_name": "string",
- "video_url": "string",
- "show_charts": true,
- "description_text_active": false,
- "description_text": "string",
- "html_description_text": "string",
- "related_group": 0,
- "question_number_is_hidden": false,
- "responding_duration": "string",
- "allow_multiple_select": false,
- "max_selectable_choices": 2,
- "min_selectable_choices": 2,
- "vertical_choices": false,
- "answer_required": false,
- "randomize": false,
- "correct_choice": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "hidden": false,
- "choice_type": 1
}, - "related_matrix_question": 0,
- "choices": [
- {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "hidden": false,
- "choice_type": 1
}
]
}
survey_id required | integer The id of the target survey. Tip: survey id is the number you can see in the build phase of that survey after " /survey " in the URL. |
id required | integer |
duplicate | string Example: duplicate=true |
title required | string <= 1500 characters |
html_title | string <= 3000 characters |
type required | integer <int32> [ 1 .. 13 ] |
image_video_active | boolean Default: false |
image_or_video | integer Default: 1 Enum: 1 2 |
image_path | string <url> |
image_name | string <= 500 characters |
video_url | string <url> <= 500 characters |
show_charts | boolean Default: true |
description_text_active | boolean Default: false |
description_text | string <= 2500 characters |
html_description_text | string <= 5000 characters |
related_group | integer <int32> related group question Id |
question_number_is_hidden | boolean Default: false |
prior_question | integer <int32> Prior question Id to place question after that |
responding_duration | string A duration string like, "00:03:20" |
allow_multiple_select | boolean Default: false |
max_selectable_choices | integer [ 1 .. 30 ] Default: 2 |
min_selectable_choices | integer [ 0 .. 30 ] Default: 2 |
vertical_choices | boolean Default: false |
answer_required | boolean Default: false |
randomize | boolean Default: false |
correct_choice_id | integer <int32> |
object (Choice) | |
Array of objects (Choice) |
{- "title": "string",
- "html_title": "string",
- "type": 1,
- "image_video_active": false,
- "image_or_video": 1,
- "image_path": "string",
- "image_name": "string",
- "video_url": "string",
- "show_charts": true,
- "description_text_active": false,
- "description_text": "string",
- "html_description_text": "string",
- "related_group": 0,
- "question_number_is_hidden": false,
- "prior_question": 0,
- "responding_duration": "string",
- "allow_multiple_select": false,
- "max_selectable_choices": 2,
- "min_selectable_choices": 2,
- "vertical_choices": false,
- "answer_required": false,
- "randomize": false,
- "correct_choice_id": 0,
- "correct_choice": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "hidden": false,
- "choice_type": 1
}, - "choices": [
- {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "hidden": false,
- "choice_type": 1
}
]
}
{- "id": 0,
- "title": "string",
- "html_title": "string",
- "type": 1,
- "image_video_active": false,
- "image_or_video": 1,
- "image_path": "string",
- "image_name": "string",
- "video_url": "string",
- "show_charts": true,
- "description_text_active": false,
- "description_text": "string",
- "html_description_text": "string",
- "related_group": 0,
- "question_number_is_hidden": false,
- "responding_duration": "string",
- "allow_multiple_select": false,
- "max_selectable_choices": 2,
- "min_selectable_choices": 2,
- "vertical_choices": false,
- "answer_required": false,
- "randomize": false,
- "correct_choice": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "hidden": false,
- "choice_type": 1
}, - "related_matrix_question": 0,
- "choices": [
- {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "hidden": false,
- "choice_type": 1
}
]
}
survey_id required | integer The id of the target survey. Tip: survey id is the number you can see in the build phase of that survey after " /survey " in the URL. |
id required | integer |
{- "id": 0,
- "title": "string",
- "html_title": "string",
- "type": 1,
- "image_video_active": false,
- "image_or_video": 1,
- "image_path": "string",
- "image_name": "string",
- "video_url": "string",
- "show_charts": true,
- "description_text_active": false,
- "description_text": "string",
- "html_description_text": "string",
- "related_group": 0,
- "question_number_is_hidden": false,
- "responding_duration": "string",
- "allow_multiple_select": false,
- "max_selectable_choices": 2,
- "min_selectable_choices": 2,
- "vertical_choices": false,
- "answer_required": false,
- "randomize": false,
- "correct_choice": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "hidden": false,
- "choice_type": 1
}, - "related_matrix_question": 0,
- "choices": [
- {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "hidden": false,
- "choice_type": 1
}
]
}
survey_id required | integer The id of the target survey. Tip: survey id is the number you can see in the build phase of that survey after " /survey " in the URL. |
since | string <date-time> Limit submitted responders since the specified date and time, inclusive. Must be passed in ISO 8601 format with timezone.(example: 2023-03-20T14:00:59%2B01:00) |
until | string <date-time> Limit submitted responders until the specified date and time, inclusive. Must be passed in ISO 8601 format with timezone.(example: 2023-03-20T14:00:59%2B01:00) |
sort | string Set responders sort criteria in this format:
|
filter | integer <Int32> Id of the filter to apply on results |
inline_filter | string Apply inline filter on results in this format:
|
page | integer >= 0 Default: 1 |
page_size | integer [ 0 .. 1000 ] Default: 30 Maximum number of responders in a page. If you have fewer than 1000 responses, you can retrieve all of the responders in a single request by adding the page_size parameter. |
{- "responders_count": 0,
- "invisible_responders_count": 0,
- "header": [
- "string"
], - "body": [
- "string"
]
}
survey_id required | integer The id of the target survey. Tip: survey id is the number you can see in the build phase of that survey after " /survey " in the URL. |
export_format | string Select export format. 1: xlsx, 2: csv. |
since | string <date-time> Limit submitted responders since the specified date and time, inclusive. Must be passed in ISO 8601 format with timezone.(example: 2023-03-20T14:00:59%2B01:00) |
until | string <date-time> Limit submitted responders until the specified date and time, inclusive. Must be passed in ISO 8601 format with timezone.(example: 2023-03-20T14:00:59%2B01:00) |
sort | string Set responders sort criteria in this format:
|
filter | integer <Int32> Id of the filter to apply on results |
inline_filter | string Apply inline filter on results in this format:
|
{- "export": "string"
}
survey_id required | integer The id of the target survey. Tip: survey id is the number you can see in the build phase of that survey after " /survey " in the URL. |
enabled | boolean Default: true Designates of whether notification is enabled or not |
sending_method | integer Default: 1 Enum: 1 2 3 Notification's sending method. 1: email, 2: sms, 3: webhook |
recipient_type required | integer Enum: 1 2 3 4 5 Notification's recipient type. 1: self notification, 2: question recipient, 3: variable recipient, 4: respondent user, 5: webhook endpoint |
body required | string Notification body |
filter | integer <int32> Notification filter ID to be applied on sending |
subject required | string Email subject |
recipients | Array of strings List of recipients email addresses |
question_recipient | integer <int32> Question ID that recipient value must be read from it's answer. Must be text question with email answer type. |
variable_recipient | integer <int32> Variable ID that recipient value must be read from it's value. Must be with text type. |
{- "enabled": true,
- "sending_method": 1,
- "recipient_type": 1,
- "body": "string",
- "filter": 0,
- "subject": "string",
- "recipients": [
- "string"
], - "question_recipient": 0,
- "variable_recipient": 0
}
{- "id": 0,
- "survey": 0,
- "enabled": true,
- "sending_method": 1,
- "recipient_type": 1,
- "body": "string",
- "filter": 0,
- "subject": "string",
- "recipients": [
- "string"
], - "question_recipient": 0,
- "variable_recipient": 0
}
survey_id required | integer The id of the target survey. Tip: survey id is the number you can see in the build phase of that survey after " /survey " in the URL. |
[- {
- "id": 0,
- "survey": 0,
- "enabled": true,
- "sending_method": 1,
- "recipient_type": 1,
- "body": "string",
- "filter": 0,
- "subject": "string",
- "recipients": [
- "string"
], - "question_recipient": 0,
- "variable_recipient": 0
}
]
survey_id required | integer The id of the target survey. Tip: survey id is the number you can see in the build phase of that survey after " /survey " in the URL. |
pk required | integer Notification ID |
enabled | boolean Default: true Designates of whether notification is enabled or not |
sending_method | integer Default: 1 Enum: 1 2 3 Notification's sending method. 1: email, 2: sms, 3: webhook |
recipient_type required | integer Enum: 1 2 3 4 5 Notification's recipient type. 1: self notification, 2: question recipient, 3: variable recipient, 4: respondent user, 5: webhook endpoint |
body required | string Notification body |
filter | integer <int32> Notification filter ID to be applied on sending |
subject required | string Email subject |
recipients | Array of strings List of recipients email addresses |
question_recipient | integer <int32> Question ID that recipient value must be read from it's answer. Must be text question with email answer type. |
variable_recipient | integer <int32> Variable ID that recipient value must be read from it's value. Must be with text type. |
{- "enabled": true,
- "sending_method": 1,
- "recipient_type": 1,
- "body": "string",
- "filter": 0,
- "subject": "string",
- "recipients": [
- "string"
], - "question_recipient": 0,
- "variable_recipient": 0
}
{- "id": 0,
- "survey": 0,
- "enabled": true,
- "sending_method": 1,
- "recipient_type": 1,
- "body": "string",
- "filter": 0,
- "subject": "string",
- "recipients": [
- "string"
], - "question_recipient": 0,
- "variable_recipient": 0
}
survey_id required | integer The id of the target survey. Tip: survey id is the number you can see in the build phase of that survey after " /survey " in the URL. |
pk required | integer Notification ID |
{- "id": 0,
- "survey": 0,
- "enabled": true,
- "sending_method": 1,
- "recipient_type": 1,
- "body": "string",
- "filter": 0,
- "subject": "string",
- "recipients": [
- "string"
], - "question_recipient": 0,
- "variable_recipient": 0
}