Create Organization Property Definition
Creates a new organization property definition for the account. Each account can have up to 50 property definitions.
Request
POST /v2/organizations/properties HTTP/1.1
Authorization: Bearer oauth_token
Content-Type: application/json
{
"type" : "dropdown",
"slug" : "industry",
"name" : "Industry",
"options" : [ {
"label" : "Technology"
}, {
"label" : "Healthcare"
}, {
"label" : "Finance"
}, {
"label" : "Retail"
} ]
}
Request fields
| Path | Type | Required | Description |
|---|---|---|---|
type |
String |
Y | Type of the property. Possible values: text, number, url, date, dropdown |
slug |
String |
Y | Organization property slug (logical id). Must be unique within the account and have length between 1 and 120 characters. |
name |
String |
Y | Name of the property. Maximum 100 characters. |
options |
Array |
N | The list of options for a dropdown property. Maximum 100 options. Any options included with property types other than ‘dropdown’ will be ignored. |
Request fields
| Path | Type | Required | Description |
|---|---|---|---|
label |
String |
Y | Human readable label for the option, max length 100 characters. |
Response
HTTP/1.1 201 Created