---
title: "Get a populated form model"
method: POST
path: "/form/model"
tags: ["Form Models"]
---

# Get a populated form model

`POST /form/model`

## Request

- Base URL: `http://localhost:8090/form-api`
- URL: `http://localhost:8090/form-api/form/model`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/flowable/apis/flowable-form-rest-api/docs/form/model/post.ts> (a function with typed inputs; its response is checked against the schema)

Provide variables needed to pre populated form fields and to render expression based form fields

## Request body

- FormRequest
  - `formInstanceId` string
  - `formDefinitionId` string
  - `formDefinitionKey` string
  - `taskId` string
  - `processInstanceId` string
  - `processDefinitionId` string
  - `scopeId` string
  - `scopeType` string
  - `scopeDefinitionId` string
  - `outcome` string
  - `tenantId` string
  - `parentDeploymentId` string
  - `variables` object

## Response `200`

Indicates the form model was found and returned.

- FormModelResponse
  - `id` string
  - `name` string
  - `description` string
  - `key` string
  - `version` integer
  - `formModel` FormModel
  - `url` string
  - `formKey` string
  - `dialogSize` string
  - `dialogTitle` string
  - `dialogDescription` string
  - `forceValidation` boolean
  - `defaultDateFormat` string
  - `defaultNumberFormat` string
  - `rows` RowDefinition[]
    - `cols` object[]
  - `metadata` MetadataDefinition
    - `key` string
    - `name` string
    - `description` string
    - `version` string
    - `modelType` string
    - `flowableDesignVersion` integer
  - `section` SectionDefinition
    - `name` string
    - `visibility` string
  - `outcomes` OutcomeDefinition[]
    - `label` string
    - `value` string
    - `visible` string
    - `enabled` string
    - `primary` string
    - `ignorePayload` boolean
    - `ignoreValidation` boolean
    - `hideErrors` boolean
    - `styleClass` string
    - `navigationUrl` string
    - `outcomeFormKey` string
    - `i18n` object
  - `formModelEvents` EventDefinition[]
    - `id` string
    - `eventType` string
    - `implementationType` string
    - `expression` string
    - `resultVariable` string
  - `customValidations` CustomValidationDefinition[]
    - `expression` string
    - `errorMsg` string
    - `i18n` object

## Other responses

- `404`: Indicates the requested form model was not found.

---

[API](https://skmtc.dev/flowable/apis/flowable-form-rest-api.md) - [All operations](https://skmtc.dev/flowable/apis/flowable-form-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/flowable/apis/flowable-form-rest-api/revisions/e581eab990c1?raw)
