Services
Surveys
Listing Surveys
List all Surveys in an account.
GET /surveys
Returns Survey[]
No description.
Retrieving a Survey
Retrieve a specific Survey.
GET /surveys/<surveyId>
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| surveyId | Integer | Mandatory | SurveyId of requested Survey. |
No description.
Copying a Survey
Copy a specific Survey.
GET /surveys/<surveyId>/copy[?surveyname=<NewSurveyName>&description=<NewSurveyDescription>©answers=<Boolean>©logic=<Boolean>]
| Parameter | Example | Default value | Note | Information |
|---|---|---|---|---|
| surveyId | 12345 | Mandatory, no default value | Make sure a survey with this Id actually exists | Id of the survey that is copied |
| surveyname | Text | Same as the survey that is copied | This will be your TK number | |
| description | Text | Same as the survey that is copied | Not needed | |
| startdate | 2018-01-01T12:00:00Z | Current date | If left empty, current date will apply | |
| enddate | 2018-01-01T12:00:00Z | Current date +14 days | If left empty, current date +14 days will apply | |
| categoryid | 123 | -999 | Target maps the Id number | If left empty, the survey will not be categorized |
| copyanswers | True/False | False | Copy the survey with the answers | |
| copylogic | True/False | False | When using, make sure that the logic is fully working | |
| copysendoutids | 123,1234,12345 | Empty | One or more Ids of sendouts, separated by comma sign(,) | |
| active | Ture/False | Same as the survey that is copied | The feature is mainly used for the ordering page |
No description.
- Sendout Id(s) is(are) not valid for the survey that is beeing copied.
- Category Id does not exist.
- Logic is broken, pointing to questions or pages that are not in the survey.
Questions
Listing Questions
Retrieve the Question tree from a survey.
GET /surveys/<surveyId>/questions
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| surveyId | Integer | Mandatory | SurveyId of survey from which questions are requested. |
No description.
Answers
Listing AnswerSets
List all AnswerSets in a survey.
GET /surveys/<surveyId>/answers[?from=<ISO8601Date>&to=<ISO8601Date>&updated=<ISO8601Date>&completed=true]
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| surveyId | Integer | Mandatory | SurveyId of survey from which AnswerSets are requested. |
| from | ISO8601 date | Optional | Retrieve AnswerSets created since specified date. |
| to | ISO8601 date | Optional | Retrieve AnswerSets created up until specified date. |
| updated | ISO8601 date | Optional | Retrieve AnswerSets updated since specified date. Cannot be used in conjuction with from / to. |
| completed | Boolean | Optional | Retrieve completed AnswerSets only. |
No description.
Listing AnswerSets with answers
Lists all AnswerSets with answers in a survey.
GET /surveys/<surveyId>/answersWithData[?page=<Integer>&pagesize=<Integer>&from=<ISO8601Date>&to=<ISO8601Date>&updated=<ISO8601Date>&completed=<Boolean>]
| Parameter | Value type | Example | Default value |
|---|---|---|---|
| surveyId | Unique identifier | 12345 | Mandatory, no default value |
| page | Number | 1 | 1 |
| pagesize | Number | 10 | 100 |
| from | ISO8601 date | 2012-02-09T12:22:09Z | Empty |
| to | ISO8601 date | 2012-02-09T12:22:09Z | Empty |
| updated | ISO8601 date | 2012-02-09T12:22:09Z | Empty |
| completed | Boolean | True/False | False |
No description.
- If from and to are set, updated cannot have a value.
- If updated is set, from and to cannot have values.
- The date in from cannot be after the date in to.
- All the dates are compared to the date when the survey was created.
Retrieving an AnswerSet
Retrieve a specific AnswerSet.
GET /surveys/<surveyId>/answers/<answerSetId>
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| surveyId | Integer | Mandatory | SurveyId of requested Survey. |
| answerSetId | Integer | Mandatory | AnswerSetId of requested AnswerSet. |
No description.
Retrieving a Respondent's Answers
Retrieve all AnswerSets for a specific Respondent.
Data retention: answers of a respondent whose distribution data was removed by a
data retention rule (action RemoveRespondentDataWithoutAnswers)
are no longer retrievable through this respondent-scoped endpoint — it returns 404
for such a respondent even though the answers themselves are preserved. The preserved answers remain
available through the survey-level endpoints
Retrieving Answers and
Retrieving Answers with data.
GET /surveys/<surveyId>/answers/respondent/<respondentId>
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| surveyId | Integer | Mandatory | SurveyId of requested Survey. |
| respondentId | Integer | Mandatory | RespondentId of Respondent whose answers are requested. |
No description.
Retrieving an Answer
Retrieve a respondent's answers for a specific question.
GET /surveys/<surveyId>/answers/<answerSetId>/questionitem/<questionItemId>
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| surveyId | Integer | Mandatory | SurveyId of requested Survey. |
| answerSetId | Integer | Mandatory | AnswerSetId of requested AnswerSet. |
| questionItemId | Integer | Mandatory | QuestionItemId of QuestionItem from which answer is requested. |
No description.
Sendouts
Listing Sendouts
List all Sendouts for a Survey.
GET /surveys/<surveyId>/sendouts
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| surveyId | Integer | Mandatory | SurveyId of Survey from which Sendouts are requested. |
No description.
Retrieving a Sendout
Retrieve a specific sendout for a survey.
GET /surveys/<surveyId>/sendouts/<sendoutId>
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| surveyId | Integer | Mandatory | SurveyId of requested Survey. |
| sendoutId | Integer | Mandatory | SendoutId of requested Sendout. |
No description.
Creating a Sendout
Create a new Sendout for a Survey.
POST /surveys/<surveyId>/sendouts
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| surveyId | Integer | Mandatory | SurveyId of requested Survey. |
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| name | String | Mandatory | Name of the Sendout. |
| type | String | Mandatory | Valid DispatchType. |
| sendDate | ISO8601 date | Mandatory | Send date. Leave empty for LOGIN. |
| sender | String | Mandatory | Valid email address or SMS sender. Leave empty for LOGIN. |
| subject | String | See remark | Optional for SMS. Leave empty for LOGIN. |
| message | String | See remark | Email body or SMS message, including survey link and optional opt-out link. Leave empty for LOGIN. |
| expiryDate | ISO8601 date | See remark | Expiry date for the sendout. Optional for EMAIL, SMS and LOGIN. No effect on TWOWAY. |
No description.
Activating a Sendout
After you have created a Sendout, you need to activate it.
POST /surveys/<surveyId>/sendouts/<sendoutId>/activate
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| surveyId | Integer | Mandatory | SurveyId of requested Survey. |
| sendoutId | Integer | Mandatory | SendoutId of Sendout you wish to activate. |
No description.
Deactivating a Sendout
Once you have activated a Sendout, you can deactivate it through the API.
POST /surveys/<surveyId>/sendouts/<sendoutId>/deactivate
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| surveyId | Integer | Mandatory | SurveyId of requested Survey. |
| sendoutId | Integer | Mandatory | SendoutId of Sendout you wish to deactivate. |
No description.
Listing Respondents
List all Respondents in a Sendout.
GET /surveys/<surveyId>/sendouts/<sendoutId>/respondents
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| surveyId | Integer | Mandatory | SurveyId of requested Survey. |
| sendoutId | Integer | Mandatory | SendoutId of Sendout from which respondents are requested. |
No description.
Adding Respondents
Add a new Respondent with optional background data to a Sendout.
Remember to (re-)activate the sendout after adding a batch of respondents to it.
POST /surveys/<surveyId>/sendouts/<sendoutId>/respondents
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| surveyId | Integer | Mandatory | SurveyId of requested Survey. |
| sendoutId | Integer | Mandatory | SendoutId of Sendout to which a respondent is added. |
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| contactDetails | String | Mandatory | Valid email address, SMS recipient or login identifier. |
| sendMail | Boolean | Mandatory | Indicates whether Netigate should send the survey link to the respondent, or if you distribute it yourself. |
| backgroundData | Dictionary<int, string> | Optional | Key = BGDataLabelId, Value = respondent's background data (not empty or null) |
No description.
Adding Multiple Respondents
Add new Respondents with optional background data to a Sendout in a batch.
Remember to (re-)activate the sendout after adding a batch of respondents to it.
(A maximum of 1000 respondents can be added in a single batch)
POST /surveys/<surveyId>/sendouts/<sendoutId>/respondents/batch
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| surveyId | Integer | Mandatory | SurveyId of requested Survey. |
| sendoutId | Integer | Mandatory | SendoutId of Sendout to which a respondent is added. |
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| surveyRespondents | List<RespondentRequest> | Mandatory | Valid RespondentRequest |
No description.
Listing Reminders
List all Reminders for a Sendout.
GET /surveys/<surveyId>/sendouts/<sendoutId>/reminders
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| surveyId | Integer | Mandatory | SurveyId of requested Survey. |
| sendoutId | Integer | Mandatory | SendoutId of Sendout from which reminders are requested. |
No description.
Creating a Reminder
Create a Reminder for a Sendout.
POST /surveys/<surveyId>/sendouts/<sendoutId>/reminders
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| surveyId | Integer | Mandatory | SurveyId of requested Survey. |
| sendoutId | Integer | Mandatory | SendoutId of Sendout to which a reminder is added. |
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| sendoutLogic | String | Mandatory | Valid SendoutLogic describing whom will receive the reminder. |
| sendDate | ISO8601 date | Mandatory | Send date. |
| sender | String | Mandatory | Valid email address or SMS sender. |
| subject | String | See remark | Optional for SMS. |
| message | String | Mandatory | Email body or SMS message, including survey link. |
No description.
Listing Background Data Labels
List all background data labels in a Sendout.
GET /surveys/<surveyId>/sendouts/<sendoutId>/labels
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| surveyId | Integer | Mandatory | SurveyId of requested Survey. |
| sendoutId | Integer | Mandatory | SendoutId of Sendout from which background data labels are requested. |
No description.
Creating a Background Data Label
Create a background data label in a Sendout.
POST /surveys/<surveyId>/sendouts/<sendoutId>/labels
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| surveyId | Integer | Mandatory | SurveyId of requested Survey. |
| sendoutId | Integer | Mandatory | SendoutId of Sendout to which a background data label is added. |
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| name | String | Mandatory | Name of the background data label. |
| labelType | String | Mandatory | Valid LabelType. |
No description.
Categories
Listing Categories
List all Categories in an Account.
GET /accounts/categories
No description.
No description.
Retrieving a Category
Retrieve a specific Category in an Account.
GET /accounts/categories/<categoryId>
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| categoryId | Integer | Mandatory | CategoryId of requested Category. |
No description.
Creating a Category
Create a new Category in an Account.
POST /accounts/categories
No description.
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| name | String | Mandatory | Name of the Category. |
No description.
Users
Listing Users
List all Users in an Account.
GET /accounts/users
No description.
No description.
Retrieving a User
Retrieve a specific User in an Account.
GET /accounts/users/<userId>
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| userId | Integer | Mandatory | UserId of requested User. |
No description.
Background Data
List Background Data Documents
List all Background Data Documents in the account.
GET /bgdata/bgdocuments
No description.
No description.
Retrieve a Background Data Document
Retrieve a specific Background Data Document
GET /bgdata/bgdocuments/<bgDocumentId>
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| bgDocumentId | Integer | Mandatory | DocumentId of requested Document. |
No description.
List Document Labels
Retrieve all Labels for a specific Document.
GET /bgdata/bgdocuments/<bgDocumentId>/labels
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| bgDocumentId | Integer | Mandatory | DocumentId of requested Labels Document. |
No description.
List Cells
Retrieve specific Cells from a specific row in a bgdocument.
POST /bgdata/bgdocuments/<bgDocumentId>/rows/<respondentId>
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| bgDocumentId | Integer | Mandatory | DocumentId of requested Document. |
| respondentId | Integer | Mandatory | Row identifier for a specific row/respondent. |
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| labels | List<int> | Mandatory | List of the Label Id:s to specify which cells to return. |
No description.
Add row to a Document
Adds a new row of cells in the background data document.
POST /bgdata/bgdocuments/<bgDocumentId>/rows
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| bgDocumentId | Integer | Mandatory | DocumentId of requested Document. |
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| contactDetails | string | Mandatory | Every row/respondent need contact details. Valid email address, SMS recipient or login identifier. |
| cellData | Dictionary<int, string> | Mandatory | Dictionary of the Label Id:s and Cell Data to specify which cells to edit with what data. |
No description.
Misc
Blocklist
List all blocked and opt-out respondents in account.
GET /accounts/blocklist
No description.
No description.
Email bounces
Get permanent failures
Returns page of permanent failures
GET /email-bounces/permanent-failures?pageNumber=<Integer>&pageSize=<Integer>&sendingDomain=<String>&from=<ISO8601Date>
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| pageNumber | Integer | Mandatory | Number of page to retrieve |
| pageSize | Integer | Mandatory | Size of page to retrieve (1000 is MAX) |
| sendingDomain | String | Optional | Filter permanent failures by sending domain |
| from | ISO8601 date | Optional | Filter sendouts by date |
| Property | Type | Remark | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| failures | Array |
Collection of email permanent failures objects
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| pageNumber | Integer | Number of returned page | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| pageSize | Integer | Size of fetched size | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| pageCount | Integer | Total number of pages for requested pageSize | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| totalCount | Integer | Total number of permanent failures |
Data Retention
Get account policies
Returns account wide data retention policies
GET /data-retention/account
No description.
| Property | Type | Remark |
|---|---|---|
| partialDeleteAfterDays | nullable Int | Number of days after survey end that a partial delete will occur |
| completeDeleteAfterDays | nullable Int | Number of days after survey end that a complete delete will occur |
| includeOpenTextInPartialDelete | Boolean | Indicates whether open text answers will be deleted as part of the partial delete. |
Set account policies
Sets account wide data retention policies
POST /data-retention/account
No description.
| Property | Type | Remark |
|---|---|---|
| partialDeleteAfterDays | nullable Int | Number of days after survey end that a partial delete will occur. Must be positive when set or null to clear setting |
| completeDeleteAfterDays | nullable Int | Number of days after survey end that a complete delete will occur. Must be positive when set or null to clear setting |
| includeOpenTextInPartialDelete | Boolean | Indicates whether open text answers will be deleted as part of the partial delete. |
No description.
No description.
Get survey policies
Returns survey specific data retention policies
GET /data-retention/surveys/<surveyId>
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| surveyId | Integer | Mandatory | SurveyId of requested Survey. |
| Property | Type | Remark |
|---|---|---|
| surveyPolicy.partialDeleteDate | nullable Date only (string) | The date after which a partial survey delete will occur |
| surveyPolicy.completeDeleteDate | nullable Date only (string) | The date after which a complete survey delete will occur |
| respondentPolicy.partialDeleteAfterDays | nullable Int | Number of days after survey end that a partial respondent delete will occur |
| respondentPolicy.partialDeleteAfterDays | nullable Int | Number of days after survey end that a complete respondent delete will occur |
| excludeFromRetentionPolicies | Boolean | Indicates whether the survey should be excluded from any data retention policies. |
| excludedBgDataLabelIds | Array of Int | Indicates which bg data label ids should be excluded from data retention policies |
Set survey policies
Sets survey specific data retention policies
POST /data-retention/surveys/<surveyId>
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| surveyId | Integer | Mandatory | SurveyId of requested Survey. |
| Property | Type | Remark |
|---|---|---|
| surveyPolicy.partialDeleteDate | nullable Date only (string) | The date after which a partial survey delete will occur. Must be greater then survey end date or null to clear setting |
| surveyPolicy.completeDeleteDate | nullable Date only (string) | The date after which a complete survey delete will occur. Must be greater then survey end date or null to clear setting |
| respondentPolicy.partialDeleteAfterDays | nullable Int | Number of days after survey end that a partial respondent delete will occur. Must be positive when set or null to clear setting |
| respondentPolicy.partialDeleteAfterDays | nullable Int | Number of days after survey end that a complete respondent delete will occur. Must be positive when set or null to clear setting |
| excludeFromRetentionPolicies | Boolean | Indicates whether the survey should be excluded from any data retention policies. |
| excludedBgDataLabelIds | Array of Int | Indicates which bg data label ids should be excluded from data retention policies. Labels with function other than 0 (Background) are ignored |
No description.
No description.
Retention rules
Retention rules automatically remove respondent data once a configurable number of days has passed. A rule is configured per scope — the whole account, one survey, or one sendout — and the most specific active rule wins (sendout before survey before account). Each call sets, reads, or removes one rule; rules configured at other scopes are never affected.
The only action currently supported is RemoveRespondentDataWithoutAnswers: it deletes the
respondent's distribution and contact data while preserving all answers. See the note on
Retrieving a Respondent's Answers for how this affects
respondent-scoped answer retrieval.
These endpoints require API version 1.5 (request path prefix /api/v1.5).
Set retention rule
Creates or updates the retention rule at the given scope. Posting to the same scope again overwrites the rule in place.
POST /data-retention/rules/account
POST /data-retention/rules/surveys/<surveyId>
POST /data-retention/rules/surveys/<surveyId>/sendouts/<sendoutId>
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| surveyId | Integer | Mandatory | SurveyId of the Survey the rule applies to. Only part of the survey- and sendout-scoped paths; the account-scoped path has no parameters. |
| sendoutId | Integer | Mandatory | SendoutId of the Sendout the rule applies to. Only part of the sendout-scoped path; must belong to the Survey in the path. |
| Property | Type | Optionality | Remark |
|---|---|---|---|
| action | Valid RetentionRuleAction | Mandatory | What the rule removes. RemoveRespondentDataWithoutAnswers deletes the respondent's distribution/contact data, answers are preserved. |
| retentionDays | Integer | Mandatory | Days the data is retained, counted from when the respondent entered the distribution. Between 1 and 3650. |
| status | Valid RetentionRuleStatus | Optional | Active (default) or Paused. A paused rule is skipped and a rule at a broader scope applies instead. |
| Property | Type | Remark |
|---|---|---|
| scope | RetentionRuleScope | Account, Survey or Sendout. |
| surveyId | Integer | Only present for survey and sendout scoped rules. |
| sendoutId | Integer | Only present for sendout scoped rules. |
| action | RetentionRuleAction | The stored action. |
| retentionDays | Integer | The stored retention period in days. |
| status | RetentionRuleStatus | Active or Paused. |
Get retention rules
Returns the retention rules configured at one scope, or — without a scope in the path — every rule configured for the account. Always returns a list; a scope without a configured rule yields an empty list.
GET /data-retention/rules
GET /data-retention/rules/account
GET /data-retention/rules/surveys/<surveyId>
GET /data-retention/rules/surveys/<surveyId>/sendouts/<sendoutId>
No description.
A list of retention rules; each item has the shape described under "Set retention rule".
Update retention rule
Changes one retention rule. Anything you leave out of the body stays as it is, so pausing a rule never requires restating its retention period, and changing the period never resumes a paused rule.
Updates only: a rule must already exist at that scope for that action, otherwise the response is 404 Not Found. Use "Set retention rule" to configure a rule for the first time.
Supply retentionDays, status, or both. A body with neither responds 400 Bad Request.
PATCH /data-retention/rules/account/actions/<action>
PATCH /data-retention/rules/surveys/<surveyId>/actions/<action>
PATCH /data-retention/rules/surveys/<surveyId>/sendouts/<sendoutId>/actions/<action>
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| surveyId | Integer | Mandatory | SurveyId of the Survey the rule applies to. Only part of the survey- and sendout-scoped paths. |
| sendoutId | Integer | Mandatory | SendoutId of the Sendout the rule applies to. Only part of the sendout-scoped path; must belong to the Survey in the path. |
| action | Valid RetentionRuleAction | Mandatory | Which rule to update. A scope can hold one rule per action. Take the value from the action field of a rule returned by "Get retention rules". Names only, matched case-insensitively; numeric values are not accepted. |
| Property | Type | Optionality | Remark |
|---|---|---|---|
| retentionDays | Integer | Optional | Days the data is retained, counted from when the respondent entered the distribution. Between 1 and 3650. Omit to leave the current value unchanged. |
| status | Valid RetentionRuleStatus | Optional | Active or Paused. A paused rule is skipped and a rule at a broader scope applies instead. Omit to leave the current status unchanged. |
The updated rule, with the same shape as the response of "Set retention rule".
Delete retention rule
Removes one retention rule: the rule for the given action at the given scope. Responds 204 No Content.
The action is part of the path because a scope can hold one rule per action. Take the value from the action field of a rule returned by "Get retention rules".
An unrecognised action responds 400 Bad Request and lists the supported values. Only the enum names are accepted, matched case-insensitively; numeric values are not.
DELETE /data-retention/rules/account/actions/<action>
DELETE /data-retention/rules/surveys/<surveyId>/actions/<action>
DELETE /data-retention/rules/surveys/<surveyId>/sendouts/<sendoutId>/actions/<action>
action Which rule to remove. One of: RemoveRespondentDataWithoutAnswers
Survey Frequency
Upsert account scoped survey frequency
Upserts account scoped survey frequency
Applies to all surveys assigned to the account, unless is overriden by survey scoped frequency
PUT /surveys/frequency
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| enabled | boolean | Mandatory | Points if account scoped frequency is enabled |
| settings | object | Mandatory | Settings for account scoped frequency |
| settings.numberOfDays | short | Mandatory | Number of days within which frequency applies |
| settings.maxNumberOfSurveys | short | Mandatory | Max number of surveys allowed within specified `settings.numberOfDays` |
| Property | Type | Remark |
|---|---|---|
| customerId | integer | Id of the customer for which account scoped frequency was upserted |
| enabled | boolean | Points if account scoped frequency is enabled |
| settings | object | Settings for account scoped frequency |
| settings.numberOfDays | short | Number of days within which frequency applies |
| settings.maxNumberOfSurveys | short | Max number of surveys allowed within specified `settings.numberOfDays` |
Get account scoped survey frequency
Returns account scoped survey frequency
GET /surveys/frequency
| Property | Type | Remark |
|---|---|---|
| customerId | integer | Id of the customer for which account scoped frequency was created |
| enabled | boolean | Points if account scoped frequency is enabled |
| settings | object | Settings for account scoped frequency |
| settings.numberOfDays | short | Number of days within which frequency applies |
| settings.maxNumberOfSurveys | short | Max number of surveys allowed within specified `settings.numberOfDays` |
Enable account scoped survey frequency
Enables account scoped survey frequency if exists and was disabled
PATCH /surveys/frequency/enable
No description.
No description.
Disable account scoped survey frequency
Disables account scoped survey frequency if exists and was enabled
PATCH /surveys/frequency/disable
No description.
No description.
Upsert survey scoped survey frequency
Upserts survey scoped survey frequency
Applies only to surveyId passed in request body. Overwrites account survey scoped frequency for that survey.
PUT /surveys/<surveyId>/frequency
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| surveyId | Integer | Mandatory | SurveyId for which frequency will be upserted |
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| enabled | boolean | Mandatory | Points if survey scoped frequency is enabled |
| settings | object | Mandatory | Settings for survey scoped frequency |
| settings.numberOfDays | short | Mandatory | Number of days within which frequency applies |
| settings.maxNumberOfSurveys | short | Mandatory | Max number of surveys allowed within specified `settings.numberOfDays` |
| Property | Type | Remark |
|---|---|---|
| customerId | integer | Id of the customer for which survey scoped frequency was upserted |
| surveyId | integer | Id of the survey for which survey scoped frequency was upserted |
| enabled | boolean | Points if survey scoped frequency is enabled |
| settings | object | Settings for survey scoped frequency |
| settings.numberOfDays | short | Number of days within which frequency applies |
| settings.maxNumberOfSurveys | short | Max number of surveys allowed within specified `settings.numberOfDays` |
Get survey scoped survey frequency
Gets survey scoped survey frequency
GET /surveys/<surveyId>/frequency
| Parameter | Type | Optionality | Remark |
|---|---|---|---|
| surveyId | Integer | Mandatory | SurveyId for which frequency will be fetched |
| Property | Type | Remark |
|---|---|---|
| customerId | integer | Id of the customer for which survey scoped frequency was created |
| surveyId | integer | Id of the survey for which survey scoped frequency was created |
| enabled | boolean | Points if survey scoped frequency is enabled |
| settings | object | Settings for survey scoped frequency |
| settings.numberOfDays | short | Number of days within which frequency applies |
| settings.maxNumberOfSurveys | short | Max number of surveys allowed within specified `settings.numberOfDays` |
Enable survey scoped survey frequency
Enables survey scoped survey frequency if exists and was disabled
PATCH /surveys/<surveyId>/frequency/enable
| Parameter | Type | Optionality | Remark | |
|---|---|---|---|---|
| surveyId | Integer | Mandatory | SurveyId for which frequency will be enabled |
No description.
No description.
Disable survey scoped survey frequency
Disables survey scoped survey frequency if exists and was enabled
PATCH /surveys/<surveyId>/frequency/disable
| Parameter | Type | Optionality | Remark | |
|---|---|---|---|---|
| surveyId | Integer | Mandatory | SurveyId for which frequency will be disabled |
No description.
No description.