v1

latestOpenAPI 3.0.3AGPL-3.0-or-later2026-07-172717248.3 KB
api

Add a new question

This endpoint allows CORS requests

post/ocs/v2.php/apps/forms/api/v3/forms/{formId}/questions

Path parameters

formIdinteger required

the form id

Headers

OCS-APIRequestboolean required

Required to be true for the API request to pass

Request body

type'dropdown' | 'multiple' | 'multiple_unique' | 'date' | 'time' | 'short' | 'long' | 'file' | 'datetime' | 'grid'
subtype'checkbox' | 'number' | 'radio'
textstring

the new question title

fromIdinteger nullable

(optional) id of the question that should be cloned

positioninteger nullable

(optional) the position of the new question

Response

the created question