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