Attribute Groups

Queries and mutations for managing Attribute Groups in the platform.

Queries

Query Attribute Groups

QUERYattributeGroups
Arguments
where​
String​
sort​
Array of String​
limit​
Int​
offset​
Int​

Get Attribute Group

QUERYattributeGroup
Arguments
id​
String​

Queries with specified ID

key​
String​

Queries with specified key

Mutations

Create Attribute Group

MUTATIONcreateAttributeGroup
Arguments
draft​

Update Attribute Group

MUTATIONupdateAttributeGroup
Arguments
version​
Long​
actions​
id​
String​

Queries with specified ID

key​
String​

Queries with specified key

Delete Attribute Group

MUTATIONdeleteAttributeGroup
Arguments
version​
Long​
id​
String​

Queries with specified ID

key​
String​

Queries with specified key

Output types

AttributeGroup

id​
String​

Platform-generated unique identifier of the AttributeGroup.

version​
Long​

Current version of the AttributeGroup.

createdAt​

Date and time (UTC) the AttributeGroup was initially created.

lastModifiedAt​

Date and time (UTC) the AttributeGroup was last updated.

name​
String​

Name of the AttributeGroup.

nameAllLocales​
Array of LocalizedString​

Name of the AttributeGroup.

description​
String​

Description of the AttributeGroup.

descriptionAllLocales​
Array of LocalizedString​

Description of the AttributeGroup.

key​
String​

User-defined unique identifier of the AttributeGroup.

attributes​
Array of AttributeReference​
Attributes with unique values.
createdBy​

IDs and references that created the AttributeGroup.

lastModifiedBy​

IDs and references that last modified the AttributeGroup.

AttributeReference

key​
String​
The Attribute's name as given in its AttributeDefinition.

AttributeGroupQueryResult

offset​
Int​
count​
Int​
total​
Long​
exists​
Boolean​
results​
Array of AttributeGroup​

Input types

AttributeGroupDraft

name​

Name of the AttributeGroup.

description​

Description of the AttributeGroup.

key​
String​

User-defined unique identifier for the AttributeGroup.

attributes​
Attributes with unique values.

AttributeReferenceInput

key​
String​

AttributeGroupUpdateAction

addAttribute​
changeName​
removeAttribute​
setDescription​
setKey​
setAttributes​

Update actions

Add Attribute

attribute​

Value to add.

Change Name

name​

New value to set. Must not be empty.

Remove Attribute

attribute​

Value to remove.

Set Description

description​

Value to set. If omitted, any existing value is removed.

Set Key

key​
String​
If key is absent or null, the existing key, if any, will be removed.

Set Attributes

attributes​

New unique values to set.