Skip to main content
POST
Create a site custom property

Authorizations

x-api-key
string
header
required

Send the API key in the x-api-key header.

Body

application/json
name
string
required

Display name. Must be unique among the entity's custom properties.

Minimum string length: 1
Example:

"Warranty Tier"

type
enum<string>
required

Value type the property accepts

Available options:
short_text,
multi_line_text,
url,
number,
checkbox,
dropdown,
multi_select,
date,
date_time
Example:

"dropdown"

options
string[]

Option labels. Required, and non-empty, for dropdown and multi_select, not accepted for other types.

Example:
defaultValue

Value pre-filled on new records. For dropdown an option id, for multi_select a list of option ids, for checkbox a boolean, for number a number, otherwise a string.

Example:

"gold"

Response

Created site custom property

id
string
required

Stable id of the property. This is what customProperties is keyed by on reads and writes — the display name can be renamed, this cannot.

Example:

"ca_warranty_count"

entity
enum<string>
required

The entity a custom property is defined for

Available options:
site,
conversation,
client
name
string
required

Display name, as configured in ProVision

Example:

"Warranty count"

type
string
required

Value type the property accepts

Example:

"number"

options
object[]
required

Selectable options for dropdown and multi_select; empty for every other type