admin

Create Question

Create a new question template. Requires admin privileges.

post/admin/questions

Request

  • Base URL
    https://api.threadchain.pro (the document declares no server; this is the origin it was published from)
  • Auth
    OAuth 2
    Password
    Token URL: auth/token

Request body

product_type'jewelry' | 'clothes' required
phasestring required
question_textstring required
input_type'text' | 'yes_no' | 'multiple_choice' | 'file_upload' | 'number' | 'textarea' | 'checkbox' required
validation_rulesobject nullable
orderinteger required
depends_on_question_idstring uuid nullable
depends_on_answerstring nullable
placeholderstring nullable
help_textstring nullable
help_display'link' | 'inline'
i18nobject nullable

Example request

{
  "question_text": "What size do you need?"
}

Response

Successful Response

product_type'jewelry' | 'clothes' required
phasestring required
question_textstring required
input_type'text' | 'yes_no' | 'multiple_choice' | 'file_upload' | 'number' | 'textarea' | 'checkbox' required
validation_rulesobject nullable
orderinteger required
depends_on_question_idstring uuid nullable
depends_on_answerstring nullable
placeholderstring nullable
help_textstring nullable
help_display'link' | 'inline'
idstring uuid required
created_atstring date-time required

Example response

{
  "question_text": "What size do you need?"
}

Changes

No recorded changes to this operation across all 1 revision of this API.