$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "manifests": [
< {
< "name": "web/package.json",
< "type": "package.json",
< "content": "{\n \"name\": \"demo-web\",\n \"dependencies\": {\n \"express\": \"^4.18.2\",\n \"request\": \"^2.88.2\",\n \"left-pad\": \"^1.3.0\"\n }\n}\n"
< },
< {
< "name": "api/requirements.txt",
< "type": "requirements.txt",
< "content": "requests==2.31.0\ndjango>=4.2\n"
< },
< {
< "name": "gateway/go.mod",
< "type": "go.mod",
< "content": "module example.com/demo\n\ngo 1.21\n\nrequire (\n\tgithub.com/gorilla/mux v1.8.1\n\tgithub.com/sirupsen/logrus v1.9.3\n)\n"
< },
< {
< "name": "worker/Cargo.toml",
< "type": "Cargo.toml",
< "content": "[package]\nname = \"demo-worker\"\nversion = \"0.1.0\"\n\n[dependencies]\nserde = \"1.0\"\nrand = \"0.8\"\n"
< }
< ],
< "licensePolicy": [
< "GPL-3.0-only",
< "AGPL-3.0-only"
< ],
< "abandonmentDays": 730,
< "includeTransitive": false,
< "failOnDeprecated": true,
< "failOnAbandoned": false,
< "failOnUnknownLicense": false,
< "baselineKey": ""
<}
<EOF
$curl "https://api.apify.com/v2/actors/kingii98~polyglot-manifest-license-and-end-of-life-gate/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'