---
updatedAt: 2026-10-16T11:52:21.000Z
agentTools:
  projectIndex: https://developer.daylite.app/llms.txt
---

# Form Definition

Get the information of a form definitions

## Attributes

<Table align={["left","left","left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>
        Attribute Name
      </th>

      <th style={{ textAlign: "left" }}>
        Type
      </th>

      <th style={{ textAlign: "left" }}>
        Description
      </th>

      <th style={{ textAlign: "left" }}>
        Attributes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        `self`
      </td>

      <td style={{ textAlign: "left" }}>
        `reference`
      </td>

      <td style={{ textAlign: "left" }}>
        URL of the [Form Definition](https://developer.daylite.app/reference/form-definition)
      </td>

      <td style={{ textAlign: "left" }}>
        Read-only
        Non-null
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        `name`
      </td>

      <td style={{ textAlign: "left" }}>
        `string`
      </td>

      <td style={{ textAlign: "left" }}>
        The name of the form definition
      </td>

      <td style={{ textAlign: "left" }}>
        Read-Write
        Non-null
        Required
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        `description`
      </td>

      <td style={{ textAlign: "left" }}>
        `string`
      </td>

      <td style={{ textAlign: "left" }}>
        Description of the form definition
      </td>

      <td style={{ textAlign: "left" }}>
        Read-Write
        Nullable
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        `is_active`
      </td>

      <td style={{ textAlign: "left" }}>
        `boolean`
      </td>

      <td style={{ textAlign: "left" }}>
        Whether new forms can be made from this definition
      </td>

      <td style={{ textAlign: "left" }}>
        Read-Write
        Non-null
        Default value is `true`
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        `entities`
      </td>

      <td style={{ textAlign: "left" }}>
        array of `string`
      </td>

      <td style={{ textAlign: "left" }}>
        The types of record forms can be added to, e.g. `["Contact", "Project"]`. Send lowercase names: `contact`, `company`, `opportunity`, `project`, `task`, `appointment`, `group`, `note`, `email`
      </td>

      <td style={{ textAlign: "left" }}>
        Read-Write
        Nullable
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        `key_definitions`
      </td>

      <td style={{ textAlign: "left" }}>
        array of `field`
      </td>

      <td style={{ textAlign: "left" }}>
        The fields on the form (max 64). See [Fields](#fields)
      </td>

      <td style={{ textAlign: "left" }}>
        Read-Write
        Nullable
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        `trashed`
      </td>

      <td style={{ textAlign: "left" }}>
        `boolean`
      </td>

      <td style={{ textAlign: "left" }}>
        Whether the definition is in the trash. Set to `false` to restore it
      </td>

      <td style={{ textAlign: "left" }}>
        Read-only
        Non-null
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        `create_date`
      </td>

      <td style={{ textAlign: "left" }}>
        `datetime`
      </td>

      <td style={{ textAlign: "left" }}>
        When the form definition was created
      </td>

      <td style={{ textAlign: "left" }}>
        Read-only
        Non-null
      </td>
    </tr>
  </tbody>
</Table>

## Fields

Each entry in `key_definitions` describes one field:

```json
{ "name": "Areas checked", "type": "multiple_checkboxes", "options": ["Roof", "Basement", "Wiring"], "default": "Roof" }
```

| Key           | Description                                                            |
| :------------ | :--------------------------------------------------------------------- |
| `name`        | Field name (max 256 characters). Forms refer to the field by this name |
| `type`        | One of the types below. Required                                       |
| `description` | Description of the field                                               |
| `options`     | Option names, for `option`, `combo` and `multiple_checkboxes` fields   |
| `default`     | Default value; for option fields, the name of the default option       |

| `type`                | Daylite field type  | Value on a form                      |
| :-------------------- | :------------------ | :----------------------------------- |
| `text`                | Text                | `value`: string                      |
| `number`              | Number              | `value`: integer                     |
| `float`               | Decimal Number      | `value`: number                      |
| `money`               | Currency            | `value`: number                      |
| `date`                | Date                | `value`: date-time string            |
| `time`                | Time                | `value`: date-time string            |
| `date_time`           | Date & Time         | `value`: date-time string            |
| `checkbox`            | Checkbox            | `value`: `1` or `0`                  |
| `option`              | Popup Options       | `values`: array with one option name |
| `combo`               | Combo Box Options   | `values`: array of option names      |
| `multiple_checkboxes` | Multiple Checkboxes | `values`: array of option names      |

When updating a definition, a `key_definitions` array replaces the fields it names and adds any new ones. To remove a field, send `{"key_definitions": {"remove": [{"name": "Rating"}]}}`.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "api-settings",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://api.marketcircle.net/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/form_definitions/{id}": {
      "get": {
        "summary": "Form Definition",
        "description": "Show the details of a form definition, including its fields",
        "operationId": "form-definition",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The form definition ID",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          },
          {
            "name": "short-mode",
            "in": "query",
            "description": "Return a smaller version of the record that leaves out lists and linked records.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 OK",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"self\": \"/v1/form_definitions/1000\",\n  \"name\": \"Site Visit Checklist\",\n  \"description\": \"Filled in after each site visit\",\n  \"is_active\": true,\n  \"entities\": [\n    \"Contact\",\n    \"Project\"\n  ],\n  \"key_definitions\": [\n    {\n      \"name\": \"Inspector notes\",\n      \"type\": \"text\"\n    },\n    {\n      \"name\": \"Rating\",\n      \"type\": \"number\",\n      \"default\": 3\n    },\n    {\n      \"name\": \"Visit date\",\n      \"type\": \"date\"\n    },\n    {\n      \"name\": \"Areas checked\",\n      \"type\": \"multiple_checkboxes\",\n      \"options\": [\n        \"Roof\",\n        \"Basement\",\n        \"Wiring\"\n      ]\n    }\n  ],\n  \"trashed\": false,\n  \"create_date\": \"2025-03-04T17:45:57.550Z\"\n}"
                  }
                }
              }
            }
          },
          "404": {
            "description": "404 Not Found",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"error\": \"form_definition_not_found\"\n}"
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```