getAttributeSetByMarker
Obtenir un seul objet d'attributs défini par un marqueur
AttributesSets.getAttributeSetByMarker(marker, langCode)
const value = await AttributesSets.getAttributeSetByMarker('my-marker')
Schéma
marker:* chaîne identifiant textuel (marqueur) de l'ensemble d'attributs exemple : 'form'
langCode: chaîne code de langue exemple : en_US
Cette méthode retourne un attribut avec des données de l'ensemble d'attributs
Exemple de retour :
{
"id": 1764,
"updatedDate": "2025-01-31T22:25:11.952Z",
"version": 10,
"identifier": "my-id",
"title": "Ensemble pour les 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
}
Schéma
id: nombre Identifiant de l'objet exemple : 1764
updatedDate: chaîne($date-time) Date de modification de l'objet exemple : ''
version: nombre Numéro de version de modification de l'objet exemple : 10
identifier:* chaîne Identifiant textuel pour le champ d'enregistrement exemple : 'my-id'
title:* chaîne Nom de l'ensemble d'attributs exemple : 'Ensemble pour les pages'
schema:* Record<string, string>
Description JSON du schéma (attributs utilisés par l'ensemble) de l'ensemble d'attributs
exemple :
{
"attribute1": {
"id": 1,
"type": "string",
"isPrice": false,
"original": true,
"identifier": "string",
"localizeInfos": {
"en_US": {
"title": "String"
}
}
}
}
isVisible:* booléen Indicateur de visibilité de l'ensemble
type:* objet Objet de type d'ensemble
position:* nombre Numéro de position exemple : 1