Skip to main content

getAttributeSetByMarker

Getting a single object of attributes set by marker

AttributesSets.getAttributeSetByMarker(marker, langCode)

const value = await AttributesSets.getAttributeSetByMarker('my-marker')
Schema

marker:* string text identifier (marker) of the attribute set example: 'form'

langCode: string language code example: en_US

This method return one attribute with data from the attribute set

Example return:

{
"id": 1764,
"updatedDate": "2025-01-31T22:25:11.952Z",
"version": 10,
"identifier": "my-id",
"title": "Set for pages",
"schema": {
"attribute1": {
"id": 1,
"type": "string",
"isPrice": false,
"original": true,
"identifier": "string",
"localizeInfos": {
"en_US": {
"title": "String"
}
}
}
},
"isVisible": true,
"type": {
"id": 5,
"type": "forProducts"
},
"position": 1
}
Schema

id: number Object identifier example: 1764

updatedDate: string($date-time) Object modification date example: ''

version: number Object modification version number example: 10

identifier:* string Text identifier for record field example: 'my-id'

title:* string Attribute set name example: 'Set for pages'

schema:* Record<string, string> Schema JSON description (attributes used by the set) of the attribute set example:

{
"attribute1": {
"id": 1,
"type": "string",
"isPrice": false,
"original": true,
"identifier": "string",
"localizeInfos": {
"en_US": {
"title": "String"
}
}
}
}

isVisible:* boolean Visibility flag of the set

type:* object Object of set type

position:* number Position number example: 1