Events (Admin)
Update survey question (Admin)
PUT
/manage/events/:eventId/questions/:questionIdUpdate a survey question. Requires the questionsWrite permission.
| Auth | Login required |
|---|
Path parameters
eventIdstringrequiredEvent ID or slug.
questionIdstringrequiredQuestion ID.
Request body
typestringoptionalQuestion type; one of text / longText / email / url / singleSelect / multiSelect / toggle / radioButton / date / image.
titlestringoptionalQuestion text; up to 255 characters.
descriptionstringoptionalDescription; up to 500 characters.
Localized question text / help.
Options for singleSelect / multiSelect / radioButton questions; each option requires a title.
requiredbooleanoptionalWhether an answer is required.
ticketIdsstring[]optionalTicket IDs this question applies to; an empty array means all tickets.
ordernumberoptionalDisplay order; an integer. Defaults to 9999.
statusstringoptionalOne of DRAFT / PUBLISHED / PRIVATE.
searchablebooleanoptionalWhether the answer is searchable.
showOnDashboardbooleanoptionalWhether to aggregate on the dashboard.
branchParentId / conditionOptionIds / positionstring | string[] | numberoptionalConditional branching settings.
Type-specific settings.
Response
Returns Question.
Request
curl https://api.4s.link/manage/events/EVENT_ID/questions/QUESTION_ID \-X PUT \-H "Authorization: Bearer 4s_at_..." \-H "Content-Type: application/json" \-d '{"title": "参加のきっかけを教えてください","required": false}'
Example response
{"id": "q1a2b3c4-...","refId": "purpose","type": "text","title": "参加目的を教えてください","description": null,"required": true,"options": [],"ticketIds": [],"order": 0,"status": "PUBLISHED","searchable": false,"showOnDashboard": false}