最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin0浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论