GET v1/Surveys/{surveyId}/Script/{eTag}
User roles allowed to make this request:
DomainAdministrator
PowerUser
RegularUser
Scripter
LimitedUser
QuotaManager
OperationsUser
SampleManager
DemoUser
Permissions required to make this request:
SurveyQuestionnaire.Read
Survey.Read
Supports blueprint surveys
Supports survey simulations
This method retrieves the specific version of ODIN script for the specified survey.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
surveyId |
The id of the survey |
string |
Required |
eTag |
The version of the script to retrieve |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
Model containing the ODIN script
Response Message
SurveyGetScriptModelName | Description | Type | Additional information |
---|---|---|---|
Script |
Gets the odin script. |
string |
None. |
FileName |
The file name for script file |
string |
None. |
WarningMessages |
Warning messages that resulted from the parse |
Collection of string |
None. |
Response Formats
application/json, text/json
{ "Script": "sample string 1", "FileName": "sample string 2", "WarningMessages": [ "sample string 1", "sample string 2" ] }
application/xml, text/xml
<SurveyGetScriptModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NipoSoftware.Nfield.Manager.Api.Models"> <FileName>sample string 2</FileName> <Script>sample string 1</Script> <WarningMessages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </WarningMessages> </SurveyGetScriptModel>