---
title: tm.optin
slug: db/tmoptin
createdAt: 2023-12-14T14:12:39.136Z
---

Opt ins

## Fields

| FIELD        | TYPE                  | DESCRIPTION                                                                      |
| ------------ | --------------------- | -------------------------------------------------------------------------------- |
| id           | `int`                 | Unique ID                                                                        |
| name         | `mlstring`            | Name                                                                             |
| typeid       | `int`                 | Type of the opt-in. Can be 'Mandatory' (40001) or 'Optional' (40002)             |
| description  | `mlstring`            | Description                                                                      |
| yescaption   | `mlstring`            | Caption for yes radio button, needs to be set when typeid is `Mandatory` (40001) |
| nocaption    | `mlstring`            | Caption for no radio button, needs to be set when typeid is `Mandatory` (40001)  |
| caption      | `mlstring`            | Caption for the checkbox, needs to be set when typeid is `Optional` (40002)      |
| availability | `[OptInAvailability]` | Sales channel where this opt-in is available                                     |
| createdts    | `timestamp`           | Created timestamp                                                                |
| lastupdatets | `timestamp`           | Last updated timestamp                                                           |
| isarchived   | `bool`                | Whether or not this item is archived                                             |

