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
The API key should be passed in the request headers as api-key for authentication.
OAuth 2.0 client_credentials (machine-to-machine) grant. Exchange your app’s client_id/client_secret for a short-lived Bearer token.
Request
Attribute creation data for a company/deal.
The type of attribute (must be one of the defined enums)
The label for the attribute (max 50 characters, cannot be empty)
The type of object the attribute belongs to. Must be either companies or deals.
Options for multi-choice or single-select attributes