Skip to content

Create property definition

Request

Create a new typed property definition with validation and metadata.

Security
ApiKeyAuth
Bodyapplication/jsonrequired
property_keystringrequired
Example:"lead_score"
labelstringrequired
Example:"Lead Score"
property_typestringrequired
Enum:"text""textarea""number""date""datetime""boolean""select""multi_select""url""email"
optionsArray of strings

Required for select/multi_select types

curl -i -X POST \
  https://api.mailerlogic.net/api/v1/contacts/property-definitions \
  -H 'Content-Type: application/json' \
  -H 'X-API-Key: YOUR_API_KEY_HERE' \
  -d '{
    "property_key": "lead_score",
    "label": "Lead Score",
    "property_type": "text",
    "options": [
      "string"
    ]
  }'

Responses

Property definition created successfully

Response
No content