Properties

List all properties

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>

The list can be filtered with parameters:

GET /article-property-values?article_id=123

The following parameters can be used:

ParameterDescription
article_idID of an article
article_property_idID of an attribute
valueValue of an attribute

Get a single property

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>Colour</name>
<value>blue</value>
</article-property-value>

The type of the attribute can be: TEXTFIELD = single line textfield, TEXTAREA = multi line text field, CHECKBOX = Checkbox

Set property

POST /api/article-property-values
XML elementDescriptionTypeDefault valueMandatory
article_idID of the articleINTyes
article_property_idID of the propertyINTyes
valueValue of the propertyALNUMyes
<article-property-value>
    <article_id>2</article_id>
    <article_property_id>3</article_property_id>
    <value>red</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>Colour</name>
<value>red</value>
</article-property-value>