---
title: "POST /api/database/views/form/{slug}/submit/"
method: POST
path: "/api/database/views/form/{slug}/submit/"
tags: ["Database table form view"]
---

# POST /api/database/views/form/{slug}/submit/

`POST /api/database/views/form/{slug}/submit/`

Submits the form if the form is publicly shared or if the user has access to the related workspace. The provided data will be validated based on the fields that are in the form and the rules per field. If valid, a new row will be created in the table.

## Path parameters

- `slug` string, required

## Request body

- ExampleRowRequest
  - `field_1` string, nullable — This field represents the `text` field. The number in field_1 is in a normal request or response the id of the field.
  - `field_2` string, nullable — This field represents the `long_text` field. The number in field_2 is in a normal request or response the id of the field.
  - `field_3` string, nullable — This field represents the `url` field. The number in field_3 is in a normal request or response the id of the field.
  - `field_4` string, nullable — This field represents the `email` field. The number in field_4 is in a normal request or response the id of the field.
  - `field_5` string, decimal, nullable — This field represents the `number` field. The number in field_5 is in a normal request or response the id of the field.
  - `field_6` integer — This field represents the `rating` field. The number in field_6 is in a normal request or response the id of the field.
  - `field_7` boolean — This field represents the `boolean` field. The number in field_7 is in a normal request or response the id of the field.
  - `field_8` string, date, nullable — This field represents the `date` field. The number in field_8 is in a normal request or response the id of the field.
  - `field_13` number, float, nullable — This field represents the `duration` field. The number in field_13 is in a normal request or response the id of the field. The provided value can be a string in one of the available formats or a number representing the duration in seconds. In any case, the value will be rounded to match the field's duration format.
  - `field_14` integer[] — This field represents the `link_row` field. The number in field_14 is in a normal request or response the id of the field. This field accepts an `array` containing the ids or the names of the related rows. A name is the value of the primary key of the related row. This field also accepts a string with names separated by a comma or an array of row names. You can also provide a unique row Id.The response contains a list of objects containing the `id` and the primary field's `value` as a string for display purposes.
  - `field_15` unknown[], nullable — This field represents the `file` field. The number in field_15 is in a normal request or response the id of the field. This field accepts an `array` containing objects with the name of the file. The response contains an `array` of more detailed objects related to the files.
    - unknown
  - `field_16` integer, nullable — Accepts one of the following option ids as integer value This field accepts an `integer` representing the chosen select option id related to the field. Available ids can be found when getting or listing the field. The response represents chosen field, but also the value and color is exposed..
  - `field_17` integer[] — This field represents the `multiple_select` field. The number in field_17 is in a normal request or response the id of the field. This field accepts a list of `integer` each of which representing the chosen select option id related to the field. Available ids can be foundwhen getting or listing the field. You can also send a list of option names in which case the option are searched by name. The first one that matches is used. This field also accepts a string with names separated by a comma or an array of file names. The response represents chosen field, but also the value and color is exposed.
  - `field_18` string, nullable — This field represents the `phone_number` field. The number in field_18 is in a normal request or response the id of the field.
  - `field_23` integer[] — This field represents the `multiple_collaborators` field. The number in field_23 is in a normal request or response the id of the field. This field accepts a list of objects representing the chosen collaborators through the object's `id` property. The id is Baserow user id. The response objects also contains the collaborator name directly along with its id.
  - `field_26` string, nullable — This field represents the `password` field. The number in field_26 is in a normal request or response the id of the field. Allows setting a write only password value. Providing a string will set the password, `null` will unset it, `true` will be ignored. The response will respond with `true` is a password is set, but will never expose the password itself.
  - `field_29` string, nullable — This field represents the `ai` field. The number in field_29 is in a normal request or response the id of the field. Holds a value that is generated by a generative AI model using a dynamic prompt.

## Response `200`

- FormViewSubmitted
  - `submit_action` 'MESSAGE' | 'REDIRECT' — * `MESSAGE` - Message * `REDIRECT` - Redirect
  - `submit_action_message` string — If the `submit_action` is MESSAGE, then this message will be shown to the visitor after submitting the form.
  - `submit_action_redirect_url` string, uri — If the `submit_action` is REDIRECT,then the visitors will be redirected to the this URL after submitting the form.
  - `row_id` integer, required

## Other responses

- `401`
- `404`

---

[API](https://skmtc.net/baserow/apis/baserow-api-spec.md) · [All operations](https://skmtc.net/baserow/apis/baserow-api-spec/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/baserow/baserow-api-spec/revisions/0c490e5b0c7f/schema)
