{
  "id": "5",
  "name": "Syncro Status Update Clockify",
  "nodes": [
    {
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        560,
        310
      ],
      "webhookId": "3300d16f-5d43-4ae7-887e-376eecaeec17",
      "parameters": {
        "path": "4500d16f-5d43-4ae7-887e-376eecaeec17",
        "options": {},
        "httpMethod": "POST",
        "responseData": "allEntries",
        "responseMode": "lastNode"
      },
      "typeVersion": 1,
      "id": "node-b07e4a28"
    },
    {
      "name": "Clockify",
      "type": "n8n-nodes-base.clockify",
      "position": [
        960,
        310
      ],
      "parameters": {
        "operation": "getAll",
        "returnAll": true,
        "workspaceId": "xxx",
        "additionalFields": {
          "name": "=Ticket {{$node[\"Webhook\"].json[\"body\"][\"attributes\"][\"number\"]}} - {{$node[\"Webhook\"].json[\"body\"][\"attributes\"][\"customer_business_then_name\"]}} [{{$node[\"Webhook\"].json[\"body\"][\"attributes\"][\"id\"]}}]",
          "archived": true
        }
      },
      "typeVersion": 1,
      "id": "node-8c2b9983"
    },
    {
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1130,
        310
      ],
      "parameters": {
        "url": "{{ $env.BASE_URL }}",
        "options": {},
        "requestMethod": "PUT",
        "authentication": "{{ $credentials.headerAuth }}",
        "bodyParametersUi": {
          "parameter": [
            {
              "name": "archived",
              "value": "false"
            },
            {
              "name": "isPublic",
              "value": "true"
            }
          ]
        },
        "headerParametersUi": {
          "parameter": []
        }
      },
      "typeVersion": 1,
      "id": "node-201e2b75"
    },
    {
      "name": "IF1",
      "type": "n8n-nodes-base.if",
      "position": [
        730,
        310
      ],
      "parameters": {
        "conditions": {
          "string": [
            {
              "value1": "={{$json[\"body\"][\"attributes\"][\"status\"]}}",
              "value2": "Resolved",
              "operation": "notEqual"
            }
          ]
        }
      },
      "typeVersion": 1,
      "id": "node-c6781a24"
    },
    {
      "name": "Clockify1",
      "type": "n8n-nodes-base.clockify",
      "position": [
        960,
        540
      ],
      "parameters": {
        "operation": "getAll",
        "returnAll": true,
        "workspaceId": "xxx",
        "additionalFields": {
          "name": "=Ticket {{$node[\"Webhook\"].json[\"body\"][\"attributes\"][\"number\"]}} - {{$node[\"Webhook\"].json[\"body\"][\"attributes\"][\"customer_business_then_name\"]}} [{{$node[\"Webhook\"].json[\"body\"][\"attributes\"][\"id\"]}}]",
          "archived": false
        }
      },
      "typeVersion": 1,
      "id": "node-e1b35a8f"
    },
    {
      "name": "HTTP Request1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1130,
        540
      ],
      "parameters": {
        "url": "{{ $env.BASE_URL }}",
        "options": {},
        "requestMethod": "PUT",
        "authentication": "{{ $credentials.headerAuth }}",
        "bodyParametersUi": {
          "parameter": [
            {
              "name": "archived",
              "value": "true"
            },
            {
              "name": "isPublic",
              "value": "true"
            }
          ]
        },
        "headerParametersUi": {
          "parameter": []
        }
      },
      "typeVersion": 1,
      "id": "node-2a820547"
    },
    {
      "id": "error-ea7e08b6",
      "name": "Error Handler",
      "type": "n8n-nodes-base.stopAndError",
      "typeVersion": 1,
      "position": [
        1000,
        400
      ],
      "parameters": {
        "message": "Workflow execution error",
        "options": {}
      }
    }
  ],
  "active": true,
  "settings": {
    "executionOrder": "v1",
    "saveManualExecutions": true,
    "callerPolicy": "workflowsFromSameOwner",
    "errorWorkflow": null,
    "timezone": "UTC",
    "executionTimeout": 3600,
    "maxExecutions": 1000,
    "retryOnFail": true,
    "retryCount": 3
  },
  "connections": {},
  "meta": {
    "versionId": "1.0.0",
    "createdAt": "2025-09-29T07:07:46.221223",
    "updatedAt": "2025-09-29T07:07:46.221279",
    "owner": "n8n-user",
    "license": "MIT",
    "category": "automation",
    "status": "active",
    "priority": "high",
    "environment": "production"
  },
  "tags": [
    "automation",
    "n8n",
    "production-ready",
    "excellent",
    "optimized"
  ],
  "description": "Production-ready workflow: Syncro Status Update Clockify. This workflow has been optimized for production use with comprehensive error handling, security, and documentation."
}