Update User Custom Attributes
Update custom user attributes with new configurations
Request Headers
API Key. Go to your Konstantly site > Settings > API and copy the value from there.
Request Body
The request body should contain an array of attribute configuration objects. Each attribute object has these properties:
ID of an existing attribute if updating (omit for new attributes)
Display name of the attribute
Type of attribute:
- 1: text
- 2: date
- 3: single choice
- 4: multiple choice
- 5: user choice
- 6: yes/no
- 7: external link
- 8: number
API identifier for the attribute. Generated automatically if not provided.
Display order position of the attribute
Whether this attribute is mandatory
Whether this attribute is visible in the interface
Whether this attribute can be modified
Required for choice-type attributes (types 3 and 4). Array of options, each containing:
Response
Returns an array of the updated attribute configurations with IDs assigned.
Error Responses
Validation error response
Usage Notes
- Type-specific requirements:
- Text (type 1): Limited to 255 characters
- Date (type 2): Must be valid ISO format dates
- Single/Multiple Choice (types 3, 4): Must include extraData options
- Number (type 8): Must be valid numeric values
- Updating existing attributes:
- Include the ID to update rather than create new
- Cannot change type of existing attributes
- Can modify options for choice attributes
- Position numbers should be unique
- Validation:
- All required fields must be provided
- Type must be valid (1-8)
- Position must be a positive integer
- Choice types require at least one option
- apiId must be unique if provided