Custom Attributes
Update Group Custom Attributes
Update custom group attributes
POST
Update or create custom attributes for groups. This endpoint allows you to modify existing attributes or add new ones.
Request Headers
API Key. Go to your Konstantly site > Settings > API and copy the value from there.
Request Body
Array of attribute objects, each containing:
Attribute name
Attribute type:
- 1: text
- 2: date
- 3: single choice
- 4: multiple choice
- 5: user choice
- 6: yes/no
- 7: external link
- 8: number
Attribute API identifier (generated if not provided)
Display position order
Whether attribute is mandatory
Whether attribute is visible in the interface
For choice-type attributes (types 3 and 4):
Important Notes
- Attribute Types:
- Text fields (type 1) are limited to 255 characters
- Date fields (type 2) expect ISO format dates
- Choice fields (types 3 and 4) require extraData with options
- Yes/No fields (type 6) are stored as booleans
- Updating Existing Attributes:
- Match existing apiId to update rather than create
- Cannot change type of existing attributes
- Can modify options for choice-type fields
Response
Array of updated attribute objects with the same structure as the GET endpoint response.
Error Responses
Validation error response