Retrieve a survey by id.
This method will result in a 204 response if there is no survey found for the requested id.
Name | Description | Type | Additional information |
---|---|---|---|
surveyId
The id of the survey you want to retrieve.
Type
integer
Additional info
Required
|
|||
surveyId |
The id of the survey you want to retrieve. |
integer |
Required |
lang
The language in which you would like to retrieve the translatable properties. If the requested language is not available we will use the default language from the survey or the first available language. The available language code can be found for each survey in the Survey - Langs property.
Type
string
Additional info
Optional
|
|||
lang |
The language in which you would like to retrieve the translatable properties. If the requested language is not available we will use the default language from the survey or the first available language. The available language code can be found for each survey in the Survey - Langs property. |
string |
Optional |
includeQuestions
By default we include the questions and responses for the survey, but if you would like to minimize the response, you can exclude them with this parameters.
Type
boolean
Additional info
Optional, Default value is True
|
|||
includeQuestions |
By default we include the questions and responses for the survey, but if you would like to minimize the response, you can exclude them with this parameters. |
boolean |
Optional, Default value is True |
Payload containing the requested surveys.
Name | Description | Type | Additional information |
---|---|---|---|
Meta
The metadata such as paging parameters, status code, timestamp,... which are related to this request.
Type
MetaData
|
|||
Meta |
The metadata such as paging parameters, status code, timestamp,... which are related to this request. |
MetaData | |
Data |
The actual data returned by the request. |
Survey | |
Links |
HATEOAS related to this object. It wil contain relevant url's such as previous and next page for paged results, create/update/delete action. These url's can be used in your application for the next steps in your application logic. |
Hateoas |
{ "Meta": { "Status": 1, "TotalRowCount": 1, "Limit": 1, "Offset": 1, "TotalPageCount": 1, "StartRec": 1, "StopRec": 1, "Timestamp": "2024-11-14T08:24:14.7303443Z", "IsFiltered": true }, "Data": { "Id": 1, "Title": "sample string 2", "SurveyStatusId": 3, "CreateDate": "2024-11-14T08:24:14.7303443Z", "LastModifyDate": "2024-11-14T08:24:14.7303443Z", "StartDate": "2024-11-14T08:24:14.7303443Z", "EndDate": "2024-11-14T08:24:14.7303443Z", "IsTrial": true, "PanelistCount": 1, "RespondentCount": 1, "CreatedBy": "sample string 4", "QuestionCount": 1, "Channels": { "ViaEmail": { "IsActive": true }, "ViaWeb": { "IsActive": true }, "ViaPaper": { "IsActive": true }, "ViaTelephone": { "IsActive": true }, "ViaKiosk": { "IsActive": true }, "ViaSms": { "IsActive": true }, "ViaPanelProvider": { "IsActive": true } }, "Options": { "AllowEditingResponses": true, "AllowMultipleSubmissions": true, "MaximumRespondents": 1, "MaximumCompletes": 1, "AnonymousPanel": true, "CooldownInDaysAfterInvitation": 1, "CooldownInDaysAfterResponse": 1, "ShowQuestionNumbering": true, "ScoreMax": 7.0 }, "Questions": [ { "$id": "1", "Id": 1, "DataLabel": "sample string 2", "Language": "sample string 3", "QuestionTypeId": 4, "Caption": "sample string 5", "Required": true, "DataTypeId": 7, "ScaleTypeId": 64, "Hidden": true, "MinValue": 1, "MaxValue": 1, "PageNumber": 8, "OrderNumber": 9, "QuestionNumber": 10, "ParentQuestionId": 11, "UseSentimentScore": true, "SubQuestions": [ { "$ref": "1" }, { "$ref": "1" } ], "QuestionResponses": [ { "ResponseId": 2, "Caption": "sample string 3", "Hidden": true, "Other": true, "NotApplicable": true, "Order": 1, "Value": 1.0, "ScaleValue": 1 }, { "ResponseId": 2, "Caption": "sample string 3", "Hidden": true, "Other": true, "NotApplicable": true, "Order": 1, "Value": 1.0, "ScaleValue": 1 } ] }, { "$ref": "1" } ], "RespondentVisibility": { "ShowContactId": true, "ShowEmail": true, "ShowLastname": true, "ShowFirstname": true, "ShowPanelistStatus": true, "ShowLang": true, "ShowDateOfBirth": true, "ShowCustomField1": true, "ShowCustomField2": true, "ShowCustomField3": true, "ShowCustomField4": true, "ShowCustomField5": true, "ShowCustomField6": true, "ShowCustomField7": true, "ShowCustomField8": true, "ShowCustomField9": true, "ShowCustomField10": true, "ShowCustomField11": true, "ShowCustomField12": true, "ShowCustomField13": true, "ShowCustomField14": true, "ShowCustomField15": true, "ShowCustomField16": true, "ShowCustomField17": true, "ShowCustomField18": true, "ShowCustomField19": true, "ShowCustomField20": true, "ShowDateAdded": true, "ShowDateMailed": true, "ShowDateSawEmail": true, "ShowDateClickedThrough": true, "ShowDateReminded": true, "ShowDateRemindedPartial": true, "ShowDateResponded": true, "ShowDateToExpire": true, "ShowDateToBeInvited": true, "ShowCompletionTime": true, "ShowOs": true, "ShowBrowser": true, "ShowGender": true, "ShowStreet": true, "ShowHouseNumber": true, "ShowSuite": true, "ShowCity": true, "ShowPostalCode": true, "ShowProvince": true, "ShowState": true, "ShowCountryId": true, "ShowPhone": true, "CustomField1Name": "sample string 2", "CustomField2Name": "sample string 3", "CustomField3Name": "sample string 4", "CustomField4Name": "sample string 5", "CustomField5Name": "sample string 6", "CustomField6Name": "sample string 7", "CustomField7Name": "sample string 8", "CustomField8Name": "sample string 9", "CustomField9Name": "sample string 10", "CustomField10Name": "sample string 11", "CustomField11Name": "sample string 12", "CustomField12Name": "sample string 13", "CustomField13Name": "sample string 14", "CustomField14Name": "sample string 15", "CustomField15Name": "sample string 16", "CustomField16Name": "sample string 17", "CustomField17Name": "sample string 18", "CustomField18Name": "sample string 19", "CustomField19Name": "sample string 20", "CustomField20Name": "sample string 21" }, "DefaultLang": "sample string 7", "ClientRef": "sample string 8", "SurveyFolderId": 1 } }
<Payload xmlns:i="http://www.w3.org/2001/XMLSchema-instance" z:Id="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/"> <Data z:Id="i2"> <ClientRef>sample string 8</ClientRef> <DefaultLang>sample string 7</DefaultLang> <SurveyFolderId>1</SurveyFolderId> <Channels> <ViaEmail> <IsActive>true</IsActive> </ViaEmail> <ViaKiosk> <IsActive>true</IsActive> </ViaKiosk> <ViaPanelProvider> <IsActive>true</IsActive> </ViaPanelProvider> <ViaPaper> <IsActive>true</IsActive> </ViaPaper> <ViaSms> <IsActive>true</IsActive> </ViaSms> <ViaTelephone> <IsActive>true</IsActive> </ViaTelephone> <ViaWeb> <IsActive>true</IsActive> </ViaWeb> </Channels> <CreateDate>2024-11-14T08:24:14.7303443+00:00</CreateDate> <CreatedBy>sample string 4</CreatedBy> <EndDate>2024-11-14T08:24:14.7303443+00:00</EndDate> <Id>1</Id> <IsTrial>true</IsTrial> <LastModifyDate>2024-11-14T08:24:14.7303443+00:00</LastModifyDate> <Options> <AllowEditingResponses>true</AllowEditingResponses> <AllowMultipleSubmissions>true</AllowMultipleSubmissions> <AnonymousPanel>true</AnonymousPanel> <CooldownInDaysAfterInvitation>1</CooldownInDaysAfterInvitation> <CooldownInDaysAfterResponse>1</CooldownInDaysAfterResponse> <MaximumCompletes>1</MaximumCompletes> <MaximumRespondents>1</MaximumRespondents> <ScoreMax>7</ScoreMax> <ShowQuestionNumbering>true</ShowQuestionNumbering> </Options> <PanelistCount>1</PanelistCount> <QuestionCount>1</QuestionCount> <Questions> <SurveyQuestion z:Id="i3"> <Caption>sample string 5</Caption> <DataLabel>sample string 2</DataLabel> <DataTypeId>7</DataTypeId> <Hidden>true</Hidden> <Id>1</Id> <Language>sample string 3</Language> <MaxValue>1</MaxValue> <MinValue>1</MinValue> <OrderNumber>9</OrderNumber> <PageNumber>8</PageNumber> <ParentQuestionId>11</ParentQuestionId> <QuestionNumber>10</QuestionNumber> <QuestionResponses> <SurveyQuestionResponse z:Id="i4"> <Caption>sample string 3</Caption> <Hidden>true</Hidden> <NotApplicable>true</NotApplicable> <Order>1</Order> <Other>true</Other> <ResponseId>2</ResponseId> <ScaleValue>1</ScaleValue> <Value>1</Value> </SurveyQuestionResponse> <SurveyQuestionResponse z:Ref="i4" /> </QuestionResponses> <QuestionTypeId>4</QuestionTypeId> <Required>true</Required> <ScaleTypeId>64</ScaleTypeId> <SubQuestions> <SurveyQuestion z:Ref="i3" /> <SurveyQuestion z:Ref="i3" /> </SubQuestions> <UseSentimentScore>true</UseSentimentScore> </SurveyQuestion> <SurveyQuestion z:Ref="i3" /> </Questions> <RespondentCount>1</RespondentCount> <RespondentVisibility> <CustomField10Name>sample string 11</CustomField10Name> <CustomField11Name>sample string 12</CustomField11Name> <CustomField12Name>sample string 13</CustomField12Name> <CustomField13Name>sample string 14</CustomField13Name> <CustomField14Name>sample string 15</CustomField14Name> <CustomField15Name>sample string 16</CustomField15Name> <CustomField16Name>sample string 17</CustomField16Name> <CustomField17Name>sample string 18</CustomField17Name> <CustomField18Name>sample string 19</CustomField18Name> <CustomField19Name>sample string 20</CustomField19Name> <CustomField1Name>sample string 2</CustomField1Name> <CustomField20Name>sample string 21</CustomField20Name> <CustomField2Name>sample string 3</CustomField2Name> <CustomField3Name>sample string 4</CustomField3Name> <CustomField4Name>sample string 5</CustomField4Name> <CustomField5Name>sample string 6</CustomField5Name> <CustomField6Name>sample string 7</CustomField6Name> <CustomField7Name>sample string 8</CustomField7Name> <CustomField8Name>sample string 9</CustomField8Name> <CustomField9Name>sample string 10</CustomField9Name> <ShowBrowser>true</ShowBrowser> <ShowCity>true</ShowCity> <ShowCompletionTime>true</ShowCompletionTime> <ShowContactId>true</ShowContactId> <ShowCountryId>true</ShowCountryId> <ShowCustomField1>true</ShowCustomField1> <ShowCustomField10>true</ShowCustomField10> <ShowCustomField11>true</ShowCustomField11> <ShowCustomField12>true</ShowCustomField12> <ShowCustomField13>true</ShowCustomField13> <ShowCustomField14>true</ShowCustomField14> <ShowCustomField15>true</ShowCustomField15> <ShowCustomField16>true</ShowCustomField16> <ShowCustomField17>true</ShowCustomField17> <ShowCustomField18>true</ShowCustomField18> <ShowCustomField19>true</ShowCustomField19> <ShowCustomField2>true</ShowCustomField2> <ShowCustomField20>true</ShowCustomField20> <ShowCustomField3>true</ShowCustomField3> <ShowCustomField4>true</ShowCustomField4> <ShowCustomField5>true</ShowCustomField5> <ShowCustomField6>true</ShowCustomField6> <ShowCustomField7>true</ShowCustomField7> <ShowCustomField8>true</ShowCustomField8> <ShowCustomField9>true</ShowCustomField9> <ShowDateAdded>true</ShowDateAdded> <ShowDateClickedThrough>true</ShowDateClickedThrough> <ShowDateMailed>true</ShowDateMailed> <ShowDateOfBirth>true</ShowDateOfBirth> <ShowDateReminded>true</ShowDateReminded> <ShowDateRemindedPartial>true</ShowDateRemindedPartial> <ShowDateResponded>true</ShowDateResponded> <ShowDateSawEmail>true</ShowDateSawEmail> <ShowDateToBeInvited>true</ShowDateToBeInvited> <ShowDateToExpire>true</ShowDateToExpire> <ShowEmail>true</ShowEmail> <ShowFirstname>true</ShowFirstname> <ShowGender>true</ShowGender> <ShowHouseNumber>true</ShowHouseNumber> <ShowLang>true</ShowLang> <ShowLastname>true</ShowLastname> <ShowOs>true</ShowOs> <ShowPanelistStatus>true</ShowPanelistStatus> <ShowPhone>true</ShowPhone> <ShowPostalCode>true</ShowPostalCode> <ShowProvince>true</ShowProvince> <ShowState>true</ShowState> <ShowStreet>true</ShowStreet> <ShowSuite>true</ShowSuite> </RespondentVisibility> <StartDate>2024-11-14T08:24:14.7303443+00:00</StartDate> <SurveyStatusId>3</SurveyStatusId> <Title>sample string 2</Title> </Data> <Meta> <IsFiltered>true</IsFiltered> <Limit>1</Limit> <Offset>1</Offset> <StartRec>1</StartRec> <Status>1</Status> <StopRec>1</StopRec> <Timestamp>2024-11-14T08:24:14.7303443+00:00</Timestamp> <TotalPageCount>1</TotalPageCount> <TotalRowCount>1</TotalRowCount> </Meta> </Payload>