API to Update Survey Rating

This new web services API was added to update the survey rating 

Service NameHTTP Method
UpdateSurveyRating 

POST

Sample Request

Json Format
{ 

    "ServiceName": "UpdateSurveyRating", 

    "objCommonParameters": { 

        "_ProxyDetails": { 

            "SAASOrgID": "0", 

            "LoginUID": 0, 

            "RequestType": "mobile", 

            "MobileVersion": "5.10.3", 

            "Password": "abc", 

            "AuthType": "FORM", 

            "ProxyID": 0, 

            "OrgID": "1", 

            "TokenID": "", 

            "ReturnType": "JSON", 

            "UserName": "abc.efg@xyz.com" 

        }, 

        "UserID": 8, 

        "CSAT_ID": 25, 

        "FeedbackRatings": [ 

            { 

                "FdQ_Id": 22, 

                "Rating": 5, 

                "Comment": "" 

            }, 

            { 

                "FdQ_Id": 23, 

                "Rating": 3, 

                "Comment": "" 

            }, 

            { 

                "FdQ_Id": 24, 

                "Rating": 0, 

                "Comment": "Testing comments" 

            }, 

            { 

                "FdQ_Id": 25, 

                "Rating": 1, 

                "Comment": "testing comm" 

            }, 

            { 

                "FdQ_Id": 26, 

                "Rating": 100, 

                "Comment": "" 

            }, 

            { 

                "FdQ_Id": 26, 

                "Rating": 101, 

                "Comment": "" 

            }, 

            { 

                "FdQ_Id": 27, 

                "Rating": 1, 

                "Comment": "" 

            } 

        ] 

    } 

} 
                

Request Parameters 

Parameter Name 

Type 

Description 

Mandatory 

SAAS Org ID 

String 

Name of the user.  

True 

Login UID 

String 

Specifies the Login user ID. 

True 

Request Type 

String 

Specifies the device from which the request was made.  

True 

Mobile Version 

Integer 

Specifies the version of the mobile used. 

True 

Password 

String 

Specifies the password of the user. 

True 

Auth Type 

String 

Specifies the authentication type used.  

True 

Org ID 

String 

Specifies the organization ID. 

True 

UserName 

String 

Specifies the username of the user. 

True 

UserID 

String 

Specifies the user ID of the user. 

True 

Sample Response

Json Format
{ 

    "Errors": "", 

    "Input": null, 

    "Message": null, 

    "OrgID": 0, 

    "Output": "Survey Update Successfully.", 

    "OutputID": 0, 

    "OutputObject": null, 

    "TokenID": "6E1FD810A35008429357A2B0295528598C68921DCEBB235631A15F09C1F4A4F54D1A066476D284BD20F9847716CC4FA7260C0068782C315C3980B324BDCA17758A7CC0363E921CF584E4C9A29B3A5D6341B44AAF85C1C28BF066E79E8F0C02436ECA0D2CC9368381C62D0020E94FF32474D6CE7954070B16785AEF1AFA397C226A0257DC6F2B36044DAAE5B2BCB9A6F5", 

    "Token_Expire_InSecs": 0 

} 

Note

For MultiSelect answer type AnswerID needs to be passed in the ‘Rating’ attribute as below: 

 

            { 

                "FdQ_Id": 26, 

                "Rating": 100, 

                "Comment": "" 

            }, 

            { 

                "FdQ_Id": 26, 

                "Rating": 101, 

                "Comment": "" 

            }, 

Status and Error Codes

For more information, see Status and Error Messages.