rest - Use api to create a new option in a question in nextcloud forms - Stack Overflow

Nextcloud's Form app has an API which allows the automatic creation of FormsQuestionsOptions.I&

Nextcloud's Form app has an API which allows the automatic creation of Forms/Questions/Options. I'm trying to create a new option for a question using this API: .md#create-a-new-option Using this payload:

optionTexts": ["A new Option."]

Nextcloud always fails with this error:

OCA\Forms\Controller\ApiController::newOption(): Argument #3 ($optionTexts) must be of type array, null given, called in /snap/nextcloud/45124/htdocs/lib/private/AppFramework/Http/Dispatcher.php on line 208 in file '/var/snap/nextcloud/45124/nextcloud/extra-apps/forms/lib/Controller/ApiController.php' line 741

How can I set the correct type array?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742395904a4435937.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信