Support for

TCAPI: tag type

John Valentine
by John Valentine 10 years ago
 

Retrieves a tag type, or lists tag types.

Request

Parameter Description
user_key Your application’s key, from developer.templatecloud.com 
format json or xml

Request a tag type by id

Syntax
/tag_types/<tagtype_id>/

After tag_types/, specify the id of the tag type like this:

HTTP request
GET http://api.templatecloud.com/sandbox/tag_types/2/?user_key=ba386e729c5f6870cea89f38e92d7a5c&format=json

Request a list of tag types

Syntax
/tag_types/

Retrieves all tag types:

HTTP request
GET http://api.templatecloud.com/sandbox/tag_types/?user_key=ba386e729c5f6870cea89f38e92d7a5c&format=json

Response

HTTP response (JSON)
{
    "tag_types": [
        {
            "id": "1",
            "name": "Industry Types"
        },
        {
            "id": "2",
            "name": "Client"
        },
        etc...
    ]
}

If one result is returned,

HTTP response (JSON)
{
    "tag_type":
        {
            "id": "1",
            "name": "Industry Types"
        }
}

Relations

References to tag types

  • tag type in templatetemplate.tag.tagtype_id
  • tag type in tag grouptaggroup.tagtype_id

References from tag types

  • Use the tag_type.id to get tag groups having that tag type:
    /tag_groups/?…type_id=<tagtype_id>
 

See also

Getting your App Approved

Jump to contents page of

TemplateCloud API Guide

 
 
 

All content is (c) Nettl Systems Limited, 2024 and may not be used, copied or distributed without permission.