Skip to content

Skill for using ViralHunt.io

Templates API: action read from the body or ?action= (an agent's every update was taken as a create), PUT/PATCH = update, archive for own templates; skill 1.6.21, MCP 1.1.16, API docs; changelog entries for the gallery, the emoji picker, the Team tooltips and this fix

Rodrigo5f150360ea49
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json
index d481086..2708fc0 100644
--- a/.claude-plugin/plugin.json
+++ b/.claude-plugin/plugin.json
@@ -1,7 +1,7 @@
{
"name": "viralhunt",
"displayName": "ViralHunt",
- "version": "1.6.20",
+ "version": "1.6.21",
"repository": "https://github.com/viralhunt-io/viralhunt-skill",
"license": "MIT",
"privacyPolicyUrl": "https://viralhunt.io/privacy",
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a40c04d..2f3d156 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,12 @@
All notable changes to the ViralHunt agent skill. Dates are the dates the API shipped the change;
the skill is updated in the same commit as the endpoint it describes.
+## 1.6.21 (2026-10-13)
+
+- `POST templates.php` reads `action` from the body or the query string, takes PUT/PATCH as `update`, and has
+ `archive` (own templates; a library template is never archived). Every update used to be read as a create when
+ `action` came in the URL.
+
## 1.6.20 (2026-10-13)
- Template authors without being admins: a member or agent the owner ticks "Creates templates" on the Team page may
diff --git a/skills/viralhunt/SKILL.md b/skills/viralhunt/SKILL.md
index 46d3eea..80e95c0 100644
--- a/skills/viralhunt/SKILL.md
+++ b/skills/viralhunt/SKILL.md
@@ -18,7 +18,7 @@ description: >-
license: MIT
metadata:
author: viralhunt-io
- version: "1.6.20"
+ version: "1.6.21"
updated: "2026-10-12"
api_docs: https://viralhunt.io/api
---
@@ -900,7 +900,11 @@ library one into a copy, and edits only the ones they created; assigning templat
the owner's): `POST templates.php` with
`{"action":"create"|"update", "slug", "name", "category", "html", "css", "variables", …}`.
Editing a curated/global template **clones it into the org's own copy** — the global is
-never modified, and on `update` you may send only the fields that change.
+never modified, and on `update` you may send only the fields that change. `action` goes in the
+JSON body or as `?action=`; PUT and PATCH are taken as `update` (with `id` or `slug_ref`).
+`{"action":"archive","id":N}` retires one of your organization's templates (yours, if you are a
+ticked author): it leaves the gallery, the agents' lists and every brand; posts already made keep
+their picture. Fix a layout with `update` on the same template, never a `-v2` copy.
Two rules the API enforces, so design for them:
- Every `{{placeholder}}` in `html` must be declared in `variables`, or the call is