pbs-n8n/PBS-Cache-Purge.json
2026-06-30 14:04:00 -04:00

72 lines
1.7 KiB
JSON

{
"name": "PBS-Cache-Purge",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "f791b88f-37d8-4a67-af54-c3e6aa6a930d",
"options": {}
},
"type": "n8n-nodes-base.webhook",
"typeVersion": 2.1,
"position": [
0,
0
],
"id": "c8dc32b7-16e4-42ca-942c-72df73edc4cd",
"name": "PBS-Save-Hook",
"webhookId": "f791b88f-37d8-4a67-af54-c3e6aa6a930d"
},
{
"parameters": {
"method": "POST",
"url": "https://api.cloudflare.com/client/v4/zones/5b64a56e652d7ffeb7b790ce2d915192/purge_cache",
"authentication": "genericCredentialType",
"genericAuthType": "httpBearerAuth",
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={\n \"files\": [\"{{ $json.body.url }}\"]\n}",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.3,
"position": [
208,
0
],
"id": "64490c69-d271-4994-a296-f7d46936dfc7",
"name": "CF-Post-Purge",
"credentials": {
"httpBearerAuth": {
"id": "Hmo79vo4h9ZGPh3i",
"name": "CF Cache Purge"
}
}
}
],
"pinData": {},
"connections": {
"PBS-Save-Hook": {
"main": [
[
{
"node": "CF-Post-Purge",
"type": "main",
"index": 0
}
]
]
}
},
"active": true,
"settings": {
"executionOrder": "v1",
"availableInMCP": false
},
"versionId": "3c0023b9-9931-49b4-99b9-d4ffdb873406",
"meta": {
"instanceId": "eeb18e777509f7207ee9abd45845e7fbf014989719160f3ed6ae633d872bf6c4"
},
"id": "e5livH0ZC27mW4q3pvpUr",
"tags": []
}