Skip to content

Create a customer property ​

POST/api/v1/workspaces/{slug}/customer-properties/

Create a new customer property in the specified workspace.

Path Parameters ​

slug:requiredstring

Slug.

Body Parameters ​

display_name:requiredstring

Display name.

description:optionalstring

Description.

logo_props:optionalobject

Logo props.

sort_order:optionalnumber

Sort order.

property_type:requiredstring
  • TEXT - Text
  • DATETIME - Datetime
  • DECIMAL - Decimal
  • BOOLEAN - Boolean
  • OPTION - Option
  • RELATION - Relation
  • URL - URL
  • EMAIL - Email
  • FILE - File
relation_type:optionalstring
  • ISSUE - Issue
  • USER - User
is_required:optionalboolean

Is required.

default_value:optionalarray

Default value.

settings:optionalobject

Settings.

is_active:optionalboolean

Is active.

is_multi:optionalboolean

Is multi.

validation_rules:optionalobject

Validation rules.

external_source:optionalstring

External source.

external_id:optionalstring

External id.

created_by:optionalstring

Created by.

updated_by:optionalstring

Updated by.

Scopes ​

customers.properties:write

Create a customer property
bash
curl -X POST \
  "https://api.plane.so/api/v1/workspaces/my-workspace/customer-properties/" \
  -H "X-API-Key: $PLANE_API_KEY" \
  # Or use -H "Authorization: Bearer $PLANE_OAUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "display_name": "Example Name",
  "description": "Example description",
  "logo_props": "example-value",
  "sort_order": 1,
  "property_type": "TEXT",
  "relation_type": "ISSUE",
  "is_required": true,
  "default_value": [
    "Example Name"
  ],
  "settings": "example-value",
  "is_active": true,
  "is_multi": true,
  "validation_rules": "example-value",
  "external_source": "github",
  "external_id": "550e8400-e29b-41d4-a716-446655440000",
  "created_by": "550e8400-e29b-41d4-a716-446655440000",
  "updated_by": "550e8400-e29b-41d4-a716-446655440000"
}'
Response201
json
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "created_at": "2024-01-01T00:00:00Z",
  "updated_at": "2024-01-01T00:00:00Z",
  "name": "Example Name",
  "display_name": "Example Name",
  "description": "Example description",
  "property_type": "TEXT",
  "deleted_at": "2024-01-01T00:00:00Z",
  "logo_props": "example-value",
  "sort_order": 1,
  "relation_type": "ISSUE",
  "is_required": true
}