# How to create Single-Select and Multi-Select fields via Integration API?

**URL:** <https://community.fibery.io/t/how-to-create-single-select-and-multi-select-fields-via-integration-api/4285>\
**Category:** Get Help\
**Tags:** integration\
**Created:** [April 10, 2023, 12:39am UTC](https://community.fibery.io/t/how-to-create-single-select-and-multi-select-fields-via-integration-api/4285 "2023-04-10T00:39:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_Blais](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/matt_blais/32/1464_2.png) [@Matt\_Blais](https://community.fibery.io/u/Matt_Blais)\
**Post date:** [April 10, 2023, 12:39am UTC](https://community.fibery.io/t/how-to-create-single-select-and-multi-select-fields-via-integration-api/4285/1 "2023-04-10T00:39:07Z")

</div>

I see in the Integration API docs that this is possible, but I see no explanation of how to do it.

I tried many random things with my schema but the resulting field type is always “Text” in Fibery. 🤷‍♂️

I can manually force a field to be a Single- or Multi-Select (see image) when setting-up a new Integration Space DB’s and fields, but I cannot figure out how to make it the default type for a field in the Integration schema.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/9/94ac8d9489e092d2f6abda87c965a09a1521cc53.png)

---

<div class="post-metadata">

**Author:** ![Evgeni\_Kisel](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/evgeni_kisel/32/13938_2.png) [@Evgeni\_Kisel](https://community.fibery.io/u/Evgeni_Kisel)\
**Post date:** [April 10, 2023, 10:07am UTC](https://community.fibery.io/t/how-to-create-single-select-and-multi-select-fields-via-integration-api/4285/2 "2023-04-10T10:07:15Z")

</div>

We’re working on better documentation.

Regarding your Q.

Single-select:

```auto
type: 'text',
subType: 'single-select'

```

Multi-select:

```auto
type: 'array[text]',
subType: 'multi-select',

```

Workflow:

```auto
type: 'text',
subType: 'workflow`

```

Optionally you can pass list of `options`. If options property is missing then Fibery will try to identify options dynamically based on your data.

Options format:

```auto
[
  {
     name: 'Open', 
     color: '#123414', // OPTIONAL
     default: true/false, // Workflow should have record with default flag
     final: true/false // workflow final step
   }
]

```

Best Regards,  
Evgeni

* * *

Edited. There was a mistake with multi-select. Changed type from `text` to `array[text]`

Sample:

```auto
{
  state: {
      name: `State`,
      type: `text`,
      subType: `workflow`,
      options: [
          {
              name: `New`,
              default: true,
          },
          {name: `In Work`},
          {
              name: `Closed`,
              final: true,
          },
      ],
  },
}

```

---

<div class="post-metadata">

**Author:** ![Evgeni\_Kisel](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/evgeni_kisel/32/13938_2.png) [@Evgeni\_Kisel](https://community.fibery.io/u/Evgeni_Kisel)\
**Post date:** [April 10, 2023, 2:23pm UTC](https://community.fibery.io/t/how-to-create-single-select-and-multi-select-fields-via-integration-api/4285/3 "2023-04-10T14:23:12Z")

</div>

also it’s possible to pass multi-select with type `text` but in this case options should be comma-separated (e.g. `dev,high prio,r22`)
