List all tags (tagcloud)

GET /api/client-tags
<?xml version="1.0" encoding="UTF-8"?>
<client-tags type="array" page="1" per_page="100" total="2">
    <client-tag>
        <id type="integer">1</id>
        <name>foo</name>
        <count type="integer">12</count>
    </client-tag>
    <client-tag>
        <id type="integer">1</id>
        <name>bar</name>
        <count type="integer">7</count>
    </client-tag>
</client-tags>

List all tags of a specific client

GET /api/client-tags?client_id={client_id}

Keywords can only be returned for a particular customer.
Therefore client_id is a mandatory parameter.

<?xml version="1.0" encoding="UTF-8"?>
<client-tags type="array" page="1" per_page="100" total="2">
    <client-tag>
        ...
    </client-tag>
    <client-tag>
        ...
    </client-tag>
</client-tags>

Get a single tag

GET /api/client-tags/{id}
<?xml version="1.0" encoding="UTF-8"?>
<client-tag>
    <id type="integer">1</id>
    <client_id type="integer">1</client_id>
    <name>foo</name>
</client-tag>

Create a tag

POST /api/client-tags
XML-Element Description Type Default value Mandatory
client_id ID of the client INT yes
name Tag ALNUM yes
<client-tag>
    <client_id>1</client_id>
    <name>foo</name>
</client-tag>
<?xml version="1.0" encoding="UTF-8"?>
<client-tag>
    <id type="integer">1</id>
    <client_id type="integer">1</client_id>
    <name>foo</name>
</client-tag>

Delete tag

DELETE /api/client-tags/{id}