|
| 1 | +--- |
| 2 | +title: Add customer property |
| 3 | +description: Creates a new customer property definition |
| 4 | +api: POST /api/v1/workspaces/{workspace-slug}/customer-properties/ |
| 5 | +--- |
| 6 | + |
| 7 | +### Path parameters |
| 8 | + |
| 9 | +<ParamField path="workspace-slug" type="string" required></ParamField> |
| 10 | + |
| 11 | +### Body |
| 12 | + |
| 13 | +<ParamField body="name" type="string"> |
| 14 | +Name of the property |
| 15 | +</ParamField> |
| 16 | + |
| 17 | +<ParamField body="display_name" type="string"> |
| 18 | +Display name of the property |
| 19 | +</ParamField> |
| 20 | + |
| 21 | +<ParamField body="description" type="string"> |
| 22 | +Description of the property |
| 23 | +</ParamField> |
| 24 | + |
| 25 | +<ParamField body="property_type" type="string"> |
| 26 | +Type of the property |
| 27 | +</ParamField> |
| 28 | + |
| 29 | +<ParamField body="relation_type" type="string"> |
| 30 | +Relation type of the property |
| 31 | +</ParamField> |
| 32 | + |
| 33 | +<ParamField body="is_required" type="boolean"> |
| 34 | +Whether the property is required |
| 35 | +</ParamField> |
| 36 | + |
| 37 | +<ParamField body="is_multi" type="boolean"> |
| 38 | +Whether the property supports multiple values |
| 39 | +</ParamField> |
| 40 | + |
| 41 | +<ParamField body="is_active" type="boolean"> |
| 42 | +Whether the property is active |
| 43 | +</ParamField> |
| 44 | + |
| 45 | +<ParamField body="sort_order" type="number"> |
| 46 | +Sort order for the property |
| 47 | +</ParamField> |
| 48 | + |
| 49 | +<ParamField body="default_value" type="string[]"> |
| 50 | +Default values for the property |
| 51 | +</ParamField> |
| 52 | + |
| 53 | +<ParamField body="settings" type="object"> |
| 54 | +Settings for the property |
| 55 | +</ParamField> |
| 56 | + |
| 57 | +<ParamField body="validation_rules" type="object"> |
| 58 | +Validation rules for the property |
| 59 | +</ParamField> |
| 60 | + |
| 61 | +<ParamField body="logo_props" type="object"> |
| 62 | +Logo properties for the property |
| 63 | +</ParamField> |
| 64 | + |
| 65 | +<ParamField body="external_source" type="string"> |
| 66 | +External source identifier |
| 67 | +</ParamField> |
| 68 | + |
| 69 | +<ParamField body="external_id" type="string"> |
| 70 | +External ID from the external source |
| 71 | +</ParamField> |
| 72 | + |
0 commit comments