Logo
Getting started
    • Overview
    • Authentication
    • Testing
    • Error handling
    • Webhooks
    • Loyalty Tokens
    • Register API
Tutorials
API Reference

List Custom Attribute Groups

Retrieve all Custom Attribute Groups for a specific entity.

GET
https://api.piggy.eu/api/v3/oauth/clients/custom-attribute-groups
Headers
Authorization
Accept
Bearer {{ personal_access_token }}
application/json
Input parameters
entitystring
required
Entity for which Custom Attribute Groups are to be retrieved
Possible values:
Response Example
Show more
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 { "data": [ { "entity": "promotion", "name": "acme_integration", "label": "Acme Integration Attributes", "created_at": "2023-11-13T16:04:14+00:00", }, { "entity": "promotion", "name": "general", "label": "General", "created_at": "2023-10-12T14:32:15+00:00", }, ], "meta": [] }

Create Custom Attribute Group

Custom Attributes can be grouped, which can be helpful to identify those attributes that are associated to your integration.

POST
https://api.piggy.eu/api/v3/oauth/clients/custom-attribute-groups
Headers
Authorization
Accept
Bearer {{ personal_access_token }}
application/json
Input parameters
namestring
required
A unique internal identifier for this group
labelstring
optional
Display value for this group
entitystring
required
Entity for which this Custom Attribute Group is to be created
Possible values:
Response Example
Show more
1 2 3 4 5 6 7 8 9 { "data": { "entity": "promotion", "name": "acme_integration", "label": "Acme Integration Attributes", "created_at": "2023-11-13T16:04:14+00:00", }, "meta": [] }