In order to get the survey you may use following API endpoint.
This will return the single DTO that contains all the objects related to a survey survey. Using the objects of this DTO you will be able to achieve all needed operations on your survey.
Copy export class NgSurveyModel {
survey : Survey ;
pages : Page [];
questions : Question [];
answers : Answer [];
answerTypes : NGSAnswerType [];
answersConnections : AnswerConnection [];
answersExtendedProperties : AnswerExtendedProperty [];
answersAppointments : AnswerAppointment [];
answersWidgetProperties : AnswerWidgetProperty [];
regularExpressions : RegularExpression [];
multiLanguageTexts : MultiLanguageText [];
branchingConditions : NGSBranchingCondition [];
skipPageConditions : NGSSkipPageCondition [];
skipQuestionConditions : NGSSkipQuestionCondition [];
redirectionConditions : NGSRedirectionCondition [];
skipAnswerConditions : NGSSkipAnswerCondition [];
thanksMessageConditions : NGSThanksMessageCondition [];
surveyActions : NGSSurveyAction [];
formStyles : FormStyle [];
dynamicContents : NGSDynamicContent [];
systemMessages : Map < string , Map < string , string >>;
securityItems : NGSSecurity [];
lastModified : number ;
supportedLanguages : Language [];
resources ?: Resource [];
mediaItems ?: Media [];
respondentSession ?: NGSRespondent ;
}