Zoho Writer > Writer - REST API Methods > ZW - Get list of tags associated with a document

ZW - Get list of tags associated with a document

Tags:  



Get list of tags associated with a particular document.



Request URL :  

                            XML : http://export.writer.zoho.com/api/private/xml/tags/[documentID]?apikey=[API Key]&ticket=[Ticket]
                            JSON : http://export.writer.zoho.com/api/private/json/tags/[documentID]?apikey=[API Key]&ticket=[Ticket]
      
 
Response fields

The schema document for the API response is located at: http://export.writer.zoho.com/schema/restapi/tags.xsd

Field
Description
tags
List of tag names associated with a particular document.


Sample Response

The following is the sample response for the above method:


<?xml version="1.0" encoding="UTF-8" ?>
<response uri="/api/private/xml/tags/8892000000009037">
<result>
    <tags>
           <tag name="Invoice" />
        <tag name="Inventory" />
            <tag name="PO" />
            <tag name="SO" />
    </tags>
</result>
</response>


Equivalent JSON response


{
  "response":
   {
        "uri": "/api/private/json/tags/8892000000009037",
        "result":
        {
           "tags":
            {
                "tag":
               
[
                              {"name":"Invoice"},
                              {"name":"Inventory"},
                              {"name":"PO"},
                              {"name":"SO"}
                ]
            }
        }
    }
}  



Errors

Displaying list of tags associated with a doc method may return general errors. Likely HTTP error code is 1404.
 


 RSS of this page