Post Experience Surveys
November 18th, 2024
Deprecated API's
  1. ldaReport in favour of surveyResponseDetail
  2. nps_survey
  3. survey_details
 New Fields added on Opportunity Application
  1. youth_nps_response
  2. youth_lps_response
  3. standards_response
New Argument on field survey_questions in survey object.
  • main_questions_only takes Boolean, filter out subquestions in survey_questions field.
Survey API's
  • no change in submitting survey response api, takes json of question_id as key and response as value.
  • surveyResponseDetail api is added, for all survey types.
query SurveyDetails($survey_uuid: String!) {
  surveyResponseDetail(survey_uuid: $survey_uuid) {
    id
    survey_uuid
    answers
    completed_at
    survey {
      title
      survey_questions(main_questions_only: true) {
        id
        question_text
        position
        subquestions {
          id
          position
          question_text
        }
        standard { # for standard's
          id
          name
          meta
        }
        leadership_value { # for lda's
          id
          name
          meta
        }
      }
    }
    opportunity_application {
      id
      intial_lda_report {
        survey_uuid
      }
      middle_lda_report {
        survey_uuid
      }
      end_lda_report {
        survey_uuid
      }
      youth_nps_response {
        survey_uuid
      }
      youth_lps_response {
        survey_uuid
      }
      standards_response {
        survey_uuid
      }
    }
  }
}

X
Crafted by