POST Method

POST HTTP method used to create new tags inside Groundhogg. If you want to create new tag using POST method you need to set Content-Type value to application/json and  you need to pass JSON array with tags argument.

While creating Tag you can pass following two arguments and tag_name is required argument. 

tag_name: User defined tag name.
tag_description: Detail description about tag.

{
    "tags": [
        {           
            "tag_name": "Tag 1",
            "tag_description": " First created Tag."           
        },
        {            
            "tag_name": "Tag 2",
            "tag_description": "Second created tag."            
        },
        {           
            "tag_name": "Tag 3"           
        },
        {
            "tag_name": "Tag 4"
        }
    ],  
}

If this operation executed successfully without any errors you will receive following output.

{
    "code": "success",
    "message": "4 tags added successfully."
}
Was this article helpful to you? Yes No

How can we help?