Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

1.1 KB
Raw Blame
{
  "id": "pol_routing",
  "name": "Routing Policy",
  "owner": "",
  "enabled": true,
  "required": false,
  "inputs": [
    {
      "sourceId": "src-dropbox",
      "trigger": {
        "type": "schedule",
        "options": {
          "schedule": { "type": "every", "count": 1, "unit": "HOURS" }
        }
      }
    }
  ],
  "steps": [
    {
      "operation": "/api/v1/misc/compress-pdf",
      "parameters": { "optimizeLevel": 5 }
    }
  ],
  "output": {
    "type": "inline",
    "options": {
      "runOn": "upload",
      "mode": "new_version",
      "name": "",
      "position": "suffix",
      "maxRetries": 3,
      "retryDelayMinutes": 5,
      "categoryId": "routing",
      "sources": ["editor", "src-dropbox"],
      "scopeTypes": [],
      "reviewerEmail": "",
      "fieldValues": {}
    }
  },
  "outputIds": ["src-archive"],
  "routingRules": [
    {
      "condition": {
        "input": { "source": "document", "field": "classification.labels" },
        "operator": "matches-any",
        "values": ["invoice", "receipt"]
      },
      "outputId": "src-finance"
    }
  ]
}