Reviews > Survey Questions > surveyQuestionsCreate
Commerce APIReviewsSurvey QuestionssurveyQuestionsCreate
surveyQuestionsCreate
POST:survey_questions.json

Description

Create one or multiple survey questions.

Permission bit: "survey_questions.create"

Topic: Survey Questions

Arguments

data: [SurveyQuestionCreate!]!

Main argument for mutations.


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


Data Argument Fields

answers: [String!]


kind: SurveyQuestionKind!

A kind of a survey question


meta: String

Metadata of the option

Example: "gauge"

Valid when: meta's length doesn't exceed 250 characters


name: String!

The survey question itself

Example: "Sizing"

Valid when: name is not empty

Valid when: name's length doesn't exceed 250 characters


Result

[SurveyQuestion!]

Preview (typescript)

Loading module