curl --request POST \ --url 'https://YOURSITE.konstant.ly/openapi/v1/custom/attributes/groups' \ --header 'X-API-KEY: 1qaz2wsx3edc4rfv1qaz2wsx3edc4rfv' \ --header 'Content-Type: application/json' \ --data '[ { "name": "Region", "type": 3, "apiId": "region", "position": 1, "isRequired": true, "isVisible": true, "extraData": [ { "position": 1, "value": "North America" }, { "position": 2, "value": "Europe" }, { "position": 3, "value": "Asia Pacific" } ] }, { "name": "Active Status", "type": 6, "apiId": "is_active", "position": 2, "isRequired": false, "isVisible": true } ]'
[ { "id": 1, "name": "Region", "type": 3, "apiId": "region", "position": 1, "isRequired": true, "extraData": [ { "id": 1, "position": 1, "value": "North America" }, { "id": 2, "position": 2, "value": "Europe" }, { "id": 3, "position": 3, "value": "Asia Pacific" } ] }, { "id": 2, "name": "Active Status", "type": 6, "apiId": "is_active", "position": 2, "isRequired": false, "extraData": null } ]
Update custom group attributes
Show Extra data item properties
Show Error object properties
Was this page helpful?