# Global lists

GET /GetGlobalListValuesByGlobalListId

See Attributes section for more info on attributes. When working with AttributeValues the API will only return the relevant data depending on what type the attributevalue is. All attributevalues contain the same metadata

Request

Query parameters:
Property name Type Description
id int Unique id for global list

Response status OK (200)

Return value: GlobalList
GlobalList
Property name Type Description
Attribute Attribute Attribute for global list
GlobalListValues AttributeValue[] Attributevalues for globallist
Attribute
Property name Type Description
Uid Guid Unique identifier of attribute
AttributeGroupId int Id of attribute group for attribute
Alias string Alias of attribute
BackofficeName string Name used in Umbraco backoffice for attribute
BackofficeDescription string Description used in Umbraco backoffice for attribute
Name TranslatedValue<string> Translated values of attribute name
Description TranslatedValue<string> Translated values of attribute Description
WhichIsBetter int Derived from enum value
AttributeType string The attribute type
AttributeValue
Property name Type Description
Uid guid Unique identifier for value
AttributeUid guid Unique identifier for attribute
AttributeValueType string Type of value as string
SortOrder int Sort order of value
AttributeAlias string Alias of the attribute. Properties for the AttributeValue will depend on this
IsTrue bool If value is true
CalculatedValue string Caluclated value if value can be calculated
LocalizedCalculatedValue TranslatedValue<string> localized value if the value is translateable
SubAttributeValues AttributeValue[] Array of sub attributes (ComplexAttributeValue)
DateTime DateTimeOffset Datetime value with timezone offset (DateTimeAttributeValue)
ReferencedAttributeValueUids guid[] Array of guids refering to another globallist attributevalues (FixedListAttributeValue)
ReferencedAttributeValues AttributeValue[] Array of attributevalues from another globallist (FixedListAttributeValue)
LocalizedImageId TranslatedValue<int> Localized value for image
ItemReferences ProductReference[] Array of productreferences (ProductAttributeValue)
LocalizedX TranslatedValue<decimal> translated decimal value. AttributeValueType: (LocalizedAreaAttributeValue, LocalizedRangeAttributeValue)
LocalizedY TranslatedValue<decimal> translated decimal value AttributeValueType: (LocalizedAreaAttributeValue, LocalizedRangeAttributeValue)
LocalizedZ TranslatedValue<decimal> translated decimal value AttributeValueType: (LocalizedAreaAttributeValue, LocalizedRangeAttributeValue)
LocalizedFrom TranslatedValue<decimal> translated decimal value
LocalizedTo TranslatedValue<decimal> translated decimal value
LocalizedMediaIds TranslatedValue<int[]> translated list of media ids
LocalizedContentIds TranslatedValue<int[]> translated list of content ids
From decimal
To decimal
LocalizedText TranslatedValue<string> Translated string values
Text string
X decimal AttributeValueType: (VolumeAttributeValue, AreaAttributeValue)
ProductReference
Property name Type Description
ItemId string Unique item id of referenced product
ItemName string Name of referenced product
ReferenceType int Reference type derived from Enum (ProductGroup = 10, Product = 20, Variant = 30, Collection = 40)
TranslatedValue<type>
Property name Type Description
LocalizedValues LocalizedValue[] List of translated names with language ids
LocalizedValue
Property name Type Description
LanguageId int Unique id of language
LocalizedVal type Value of variable type

GET /GetGlobalListValuesByGlobalListAlias

See Attributes section for more info on attributes. When working with AttributeValues the API will only return the relevant data depending on what type the attributevalue is. All attributevalues contain the same metadata

Request

Query parameters:
Property name Type Description
alias string Unique alias for global list

Response status OK (200)

Return value: GlobaList
GlobalList
Property name Type Description
Attribute Attribute Attribute for global list
GlobalListValues AttributeValue[] Attributevalues for globallist
Attribute
Property name Type Description
Uid Guid Unique identifier of attribute
AttributeGroupId int Id of attribute group for attribute
Alias string Alias of attribute
BackofficeName string Name used in Umbraco backoffice for attribute
BackofficeDescription string Description used in Umbraco backoffice for attribute
Name TranslatedValue<string> Translated values of attribute name
Description TranslatedValue<string> Translated values of attribute Description
WhichIsBetter int Derived from enum value
AttributeType string The attribute type
AttributeValue
Property name Type Description
Uid guid Unique identifier for value
AttributeUid guid Unique identifier for attribute
AttributeValueType string Type of value as string
SortOrder int Sort order of value
AttributeAlias string Alias of the attribute. Properties for the AttributeValue will depend on this
IsTrue bool If value is true
CalculatedValue string Caluclated value if value can be calculated
LocalizedCalculatedValue TranslatedValue<string> localized value if the value is translateable
SubAttributeValues AttributeValue[] Array of sub attributes (ComplexAttributeValue)
DateTime DateTimeOffset Datetime value with timezone offset (DateTimeAttributeValue)
ReferencedAttributeValueUids guid[] Array of guids refering to another globallist attributevalues (FixedListAttributeValue)
ReferencedAttributeValues AttributeValue[] Array of attributevalues from another globallist (FixedListAttributeValue)
LocalizedImageId TranslatedValue<int> Localized value for image
ItemReferences ProductReference[] Array of productreferences (ProductAttributeValue)
LocalizedX TranslatedValue<decimal> translated decimal value. AttributeValueType: (LocalizedAreaAttributeValue, LocalizedRangeAttributeValue)
LocalizedY TranslatedValue<decimal> translated decimal value AttributeValueType: (LocalizedAreaAttributeValue, LocalizedRangeAttributeValue)
LocalizedZ TranslatedValue<decimal> translated decimal value AttributeValueType: (LocalizedAreaAttributeValue, LocalizedRangeAttributeValue)
LocalizedFrom TranslatedValue<decimal> translated decimal value
LocalizedTo TranslatedValue<decimal> translated decimal value
LocalizedMediaIds TranslatedValue<int[]> translated list of media ids
LocalizedContentIds TranslatedValue<int[]> translated list of content ids
From decimal
To decimal
LocalizedText TranslatedValue<string> Translated string values
Text string
X decimal AttributeValueType: (VolumeAttributeValue, AreaAttributeValue)
ProductReference
Property name Type Description
ItemId string Unique item id of referenced product
ItemName string Name of referenced product
ReferenceType int Reference type derived from Enum (ProductGroup = 10, Product = 20, Variant = 30, Collection = 40)
TranslatedValue<type>
Property name Type Description
LocalizedValues LocalizedValue[] List of translated names with language ids
LocalizedValue
Property name Type Description
LanguageId int Unique id of language
LocalizedVal type Value of variable type

GET /GetGlobalLists

Request

Parameters: none

Response status OK (200)

Return value: GlobaList[]
GlobalList
Property name Type Description
Id int Unique identifier of global list
Attribute Attribute Attribute definition for global list
ViewRequiresPermission bool True if global list requires permission to view
ManageRequiresPermission bool True if global list requires permission to edit
GlobalListKeys Guid[] Array of global list keys
Attribute
Property name Type Description
Uid Guid Unique identifier of attribute
AttributeGroupId int Id of attribute group for attribute
Alias string Alias of attribute
BackofficeName string Name used in Umbraco backoffice for attribute
BackofficeDescription string Description used in Umbraco backoffice for attribute
Name TranslatedValue<string> Translated values of attribute name
Description TranslatedValue<string> Translated values of attribute Description
WhichIsBetter int Derived from enum value
AttributeType string The attribute type
TranslatedValue<type>
Property name Type Description
LocalizedValues LocalizedValue[] List of translated names with language ids
LocalizedValue
Property name Type Description
LanguageId int Unique id of language
LocalizedVal type Value of variable type

POST /CreateGlobalList

Request

Body parameters: #GlobalList
GlobalList
Property name Type Description
Id int Unique Id for global list
Attribute Attribute Attribute for global list
ViewRequiresPermission bool Determine if this global list requires specific permission to be viewed
ViewPermission guid If permission is required to view, send guid of required permission (optional)
ManageRequiresPermission bool Determine if this global list requires specific permission to be managed
ManagePermission guid If permission is required to manage, send guid of required permission (optional)
FolderUid guid Folder guid of designated importfolder (optional)
GlobalListKeys guid[] Global list keys as an array of guids
Attribute
Property name Type Description
Uid guid Unique identifier of attribute
AttributeGroupId int Id of attribute group for attribute
Alias string Alias of attribute
BackofficeName string Name used in Umbraco backoffice for attribute
BackofficeDescription string Description used in Umbraco backoffice for attribute
Name TranslatedValue<string> Translated values of attribute name
Description TranslatedValue<string> Translated values of attribute Description
WhichIsBetter int Derived from enum value
AttributeType string The attribute type

Response status OK (200)

Return value: none

POST /UpdateGlobalList

Request

Body parameters: GlobalList
GlobalList
Property name Type Description
Id int Unique Id for global list
Attribute Attribute Attribute for global list
ViewRequiresPermission bool Determine if this global list requires specific permission to be viewed
ViewPermission guid If permission is required to view, send guid of required permission (optional)
ManageRequiresPermission bool Determine if this global list requires specific permission to be managed
ManagePermission guid If permission is required to manage, send guid of required permission (optional)
FolderUid guid Folder guid of designated importfolder (optional)
GlobalListKeys guid[] Global list keys as an array of guids
Attribute
Property name Type Description
Uid guid Unique identifier of attribute
AttributeGroupId int Id of attribute group for attribute
Alias string Alias of attribute
BackofficeName string Name used in Umbraco backoffice for attribute
BackofficeDescription string Description used in Umbraco backoffice for attribute
Name TranslatedValue<string> Translated values of attribute name
Description TranslatedValue<string> Translated values of attribute Description
WhichIsBetter int Derived from enum value
AttributeType string The attribute type

Response status OK (200)

Return value: none

POST /DeleteGlobalList

Request

Query parameters:
Property name Type Description
id int Unique id for global list

Response status OK (200)

Return value: none

GET /GetGlobalListFolders

This endpoint will return an array of all global list folders in the PIM.

Request

Parameters: none

Response status OK (200)

Return value: globalListFolder[]
Property name Type Description
Uid guid Unique identifier for the folder
Name string Text string with the backoffice name

POST /CreateGlobalListFolder

Request

Body parameters: GlobalListFolder
Property name Type Description
Uid guid Unique identifier for the folder
Name string Text string with the backoffice name

Response status OK (200)

Return value: none

POST /UpdateGlobalListFolder

Request

Body parameters: GlobalListFolder
Property name Type Description
Uid guid Unique identifier for the folder
Name string Text string with the backoffice name

Response status OK (200)

Return value: none

POST /DeleteGlobalListFolder

Request

Query parameters:
Property name Type Description
uid guid Unique identifier of the global list folder

Response status OK (200)

Return value: none

POST /CreateOrUpdateGlobalListValues

Request

Body parameters: GlobalListCreateUpdateDTO
GlobalListCreateUpdateDTO
Property name Type Description
GlobalListAlias string Alias of global list to create or update value in
GlobalListValues ApiWriteObject[] Array of values to create or update including meta data of the values
ApiWriteObject
Property name Type Description
IsKey boolean If the value is the key for determining if there is a value that should be updated
IsParentKey boolean If object is a key of a parent
Alias string Alias to identify what field the value is representing
Value object The value itself, the API accepts object that match the setup of the global list
KeyHash string

Response status OK (200)

Return value: none

POST /DeleteGlobalListValues

Request

Body parameters: GlobalListDeleteDTO
GlobalListDeleteDTO
Property name Type Description
GlobalListAlias string Alias of global list to create or update value in
GlobalListValuesToDelete ApiWriteObject[] Array of values to create or update including meta data of the values
ApiWriteObject
Property name Type Description
IsKey boolean If the value is the key for determining if there is a value that should be updated
IsParentKey boolean If object is a key of a parent
Alias string Alias to identify what field the value is representing
Value object The value itself, the API accepts object that match the setup of the global list
KeyHash string

Response status OK (200)

Return value: none


© 2024 Struct - All rights reserved.