Skip to main content
POST
Update or create custom attributes for groups. This endpoint allows you to modify existing attributes or add new ones.

Request Headers

string
required
API Key. Go to your Konstantly site > Settings > API and copy the value from there.

Request Body

Array of attribute objects, each containing:
string
required
Attribute name
integer
required
Attribute type:
  • 1: text
  • 2: date
  • 3: single choice
  • 4: multiple choice
  • 5: user choice
  • 6: yes/no
  • 7: external link
  • 8: number
string
Attribute API identifier (generated if not provided)
integer
required
Display position order
boolean
required
Whether attribute is mandatory
boolean
required
Whether attribute is visible in the interface
array
For choice-type attributes (types 3 and 4):

Important Notes

  1. 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
  1. 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

object
Validation error response