submit_form
Submit answers to a Nextcloud form by providing the form ID and answer mapping, optionally using a share hash for public links.
Instructions
Submit answers to a form on behalf of the current user.
Args:
form_id: Numeric form id.
answers: Object mapping question id (as string) to array of answer
values. Example: {"42": ["my comment"], "43": [1, 3]} where
42 is a text question and 43 has option ids 1 and 3 selected.
share_hash: Required if submitting via a public link share instead
of direct access. Obtain from the form's hash field.
Returns: Empty OCS data on success (HTTP 201).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| answers | Yes | ||
| form_id | Yes | ||
| share_hash | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |