Tags - Creating tags

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

While creating Tag you can pass the tags argument with the tag names.

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

This request creates new tags inside Groundhogg and returns the  following  output.

{
    "tags": {
        "6": "Tag 1",
        "7": "Tag 2",
        "8": "Tag 3"
    },
    "status": "success"
}
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us