Quick tip: Upload tags from a JSON file

Recently, I needed to add many tags to the admin at once and make it easy for others to do the same without adding tags individually through the admin.

So, the way to do this is to add the tags list whether a Public or Internal tag in a JSON file and import it from Settings > Labs > Import content.

{
  "meta": {
    "version": "1.0.0"
  },
  "data": {
    "tags": [
      { "name": "News" },
      { "name": "#Internal" }
    ]
  }
}

In this example, the News Public tag will be created and #Internal as a Private tag.

That’s all.

6 Likes