SetCompanyCustomFieldCommandRequestInput
Sets the value of a custom field (German ‘Eigenes Feld’) of a company and replaces the value that was there. The value follows the rules of the custom field definitions API (field IDs, data types and allowed values come from ‘/custom-fields’): it has the shape of the data type of the field (text for text, url, email, phone, countryIso, shortText and valueList; integer for integer; decimal for decimal and price, a price is not negative; boolean for checkbox; date for date, a valid calendar date from 1753-01-01 to 9999-12-31, the time of day is ignored; decimal and price have at most 12 integer and 13 fractional digits). A value of the wrong shape is refused with CUSTOM_FIELD_VALUE_TYPE_MISMATCH, a value of the right shape with the wrong format with CUSTOM_FIELD_VALUE_INVALID (url: absolute http or https address; email: valid address; countryIso: two capital letters; valueList: one of the allowed values; text: not empty). Required fields are a hint only: a required field can be left empty or cleared. Hidden fields stay readable and writable. There is one value per field and company, without language. Error codes: COMPANY_NOT_FOUND, CUSTOM_FIELD_NOT_FOUND, CUSTOM_FIELD_NOT_FOR_COMPANIES, CUSTOM_FIELD_VALUE_TYPE_MISMATCH, CUSTOM_FIELD_VALUE_INVALID, COMPANY_INACTIVE. - Request
SetCompanyCustomFieldCommandRequestInputFields
The ID of the company.
The ID of the custom field. It has to be a custom field for companies.
The value. Its type has to match the data type of the field.
Was this page helpful?