Store Field Setup
POST/fieldsetup-srv/fields
Creates a new field setup or updates an existing one (matched by fieldKey).
Create returns 201; update returns 200.
Validation rules
Required fields
fieldKey: Unique identifier (cannot be changed after creation)dataType: Valid datatype (TEXT, EMAIL, SELECT, and others)fieldType:CUSTOMorSYSTEM(onlyCUSTOMcan be created through this API)localeTexts: At least one localized text entryfieldDefinition: Validation rules for the datatype
Restrictions
- Cannot create fields with
fieldType: SYSTEM - Cannot change
fieldTypeon update - Cannot change
dataTypefor SYSTEM fields - Creating or converting to
dataType: CONSENTis rejected (CONSENT_FIELD_SETUP_DEPRECATED). Use Consent Management APIs. ordermust be >= 0parent_group_idcannot equalfieldKey
TEXT field validation
- Use either
regexorminLength/maxLength, not both - Regex must be valid Go regex syntax
- When only min/max length is provided, the service derives an internal regex
Remote field settings
remoteFieldSettingsis only supported whendataTypeisGROUPING
Field definition validation
- Date fields:
minDatemust be beforemaxDate - SELECT / RADIO / MULTISELECT:
attributesKeysrequired - NUMBER:
minLength/maxLengthact as numeric range bounds
Request
Responses
- 200
- 201
- 400
- 401
- 409
- 417
OK
Created
Bad Request - Validation Error
Unauthorized
Conflict - Field Key Already Exists
Expectation Failed - field exists with a different internal ID