v1

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

Reorder options for a given question

This endpoint allows CORS requests

patch/ocs/v2.php/apps/forms/api/v3/forms/{formId}/questions/{questionId}/options

Path parameters

formIdinteger required

id of form

questionIdinteger required

id of question

Headers

OCS-APIRequestboolean required

Required to be true for the API request to pass

Request body

newOrderinteger[] required

Array of option ids in new order.

optionTypestring nullable

the new option type (e.g. 'row')

Response

the options of the question in the new order