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 the tags argument with the tag names.

http://yoursite.com/wp-json/gh/v3/tags
{
    "tags": [
         "Tag 1",
         "Tag 2",
         "Tag 3"
    ]
}      

This request creates a new tag inside Groundhogg and returns following output.

{
    "tags": {
        "6": "Tag 1",
        "7": "Tag 2",
        "8": "Tag 3"
    },
    "status": "success"
}
Was this article helpful to you? Yes No

How can we help?