Attribute

Alle Attribute auflisten

GET /api/article-property-values
<?xml version="1.0" encoding="UTF-8"?>
<article-property-values type="array" page="1" per_page="100" total="2">
    <article-property-value>
        ...
    </article-property-value>
    <article-property-value>
        ...
    </article-property-value>
</article-property-values>

Über Parameter kann gefiltert werden:

GET /article-property-values?article_id=123

Folgende Parameter stehen zur Verfügung:

ParameterBeschreibung
article_idID eines speziellen Artikels
article_property_idID eines speziellen Attributs
valueWert des Attributs

Einzelnes Attribut aufrufen

GET /api/article-property-values/{id}
<?xml version="1.0" encoding="UTF-8"?>
<article-property-value>
    <id type="integer">1</id>
    <article_id type="integer">2</article_id>
    <article_property_id type="integer">3</article_property_id>
    <type>TEXTFIELD</type>
    <name>Farbe</name>
    <value>blau</value>
</article-property-value>

Als Typ des Attributs sind folgende Werte möglich: TEXTFIELD = einzeiliges Textfeld, TEXTAREA = mehrzeiliges Textfeld, CHECKBOX = Checkbox

Attribut setzen

POST /api/article-property-values
XML-ElementBeschreibungTypDefault-WertPflichtfeld
article_idID des ArtikelINTja
article_property_idID des AttributsINTja
valueWert des AttributsALNUMja
<article-property-value>
    <article_id>2</article_id>
    <article_property_id>3</article_property_id>
    <value>rot</value>
</article-property-value>
<?xml version="1.0" encoding="UTF-8"?>
<article-property-value>
    <id type="integer">1</id>
    <article_id type="integer">2</article_id>
    <article_property_id type="integer">3</article_property_id>
    <type>TEXTFIELD</type>
    <name>Farbe</name>
    <value>rot</value>
</article-property-value>