This module helps to create new survey. The Service URL of the module is given by the following link-
https://www.enterice.com/ICEAPI/api/ChatAdmin/CreateSurvey
•Request Type-
Post
•Allowed for-
Admin
•Json Formats-
1. Code snippet for Web Service Use–
CreateSurvey.
{
“Token”:”sdfdsavcxdgdfFD”,
“SurveyTypeId”: 12,
“SurveyName”: PreChat,
“SurveyHeading”: “Prechat”,
“HeadScript”: “script”,
“FormScript”: “script”,
“SurveySubject”:”subject”,
“IsActive”: true,
“OrgId”: 59,
“SkillId”: “123”,
“IsDefault”: “True”,
“DefaultPriority”: “1”,
“IsEmailAcitve”:”false”,
“Email”:””
}
2. Description for Request Parameters–
| S.No | Name | Type | Description |
| 1 | Token | String | Authentication Token |
| 2 | SurveyTypeId | Int | Id of survey type |
| 3 | SurveyName | String | Name of survey |
| 4 | SurveyHeading | String | Heading of survey |
| 5 | HeadScript | String | Script for head |
| 6 | FormScript | String | Script for form |
| 7 | SurveySubject | String | Subject of survey |
| 8 | IsActive | Bit | Active or inactive |
| 9 | OrgId | Int | Id of organization |
| 10 | SkillId | Int | Id of skill |
| 11 | IsDefault | Bit | Is default or not |
| 12 | DefaultPriority | Bit | Priority of survey |
| 13 | IsEmailActive | Bit | Is Email required |
| 14 | String | Email address |
3. Response Example-
Success:
{ “Message”: ” Success”,
“SurveyId”:”123″
}
Fail:
{ “message”: ” Failed” }