quotecloud_create_data_item
Create a company-wide custom data item (merge field) definition, available to every document, template, contact, product or user of that connection. Supports all nine types; select, multiselect and check take an option list; defaultValue is validated against the type. Creating a contact item also creates its document-side twin, as the settings page does. Idempotent by label: if an active company-wide item with the same label (case-insensitive) and connection exists, it is returned with created:false instead of a duplicate (change its type or options with quotecloud_update_custom_data_definition). For document and template items the response also carries html (a data-item span to write into text blocks) and token ([[dataItem-<id>]], for table cells). Writes company settings, requires customData:write, only runs when customData.manage is enabled, and needs the company owner or the manageCompanySettings role permission plus the Custom Data Items add-on. Not dangerous: no confirmation is required. To add an item to one document only, use quotecloud_add_document_data_item instead.
Inputs
labelRequiredtypeRequiredconnectionRequireddefaultValueOptionalmandatoryOptionaloptionsOptional