Create a company/deal attribute
Create a company/deal attribute
Create a new custom attribute for companies or deals. The attribute label must be unique within the object type, cannot exceed 50 characters, and cannot use reserved names. For single-select or multi-choice attribute types, you must also provide the optionsLabels array.
Authentication
api-keystring
The API key should be passed in the request headers as api-key for authentication.
Request
Attribute creation data for a company/deal.
attributeType
The type of attribute (must be one of the defined enums)
label
The label for the attribute (max 50 characters, cannot be empty)
objectType
The type of object the attribute belongs to. Must be either companies or deals.
Allowed values:
description
A description of the attribute
optionsLabels
Options for multi-choice or single-select attributes
Response
Created new attribute
id
Unique ID of the created attribute
Errors
400
Bad Request Error