$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "endpoints": [
< {
< "url": "https://api.bitbucket.org/2.0/repositories",
< "method": "GET"
< },
< {
< "url": "https://postman-echo.com/response-headers?Deprecation=%401735689600&Sunset=Wed%2C%2031%20Dec%202031%2023%3A59%3A59%20GMT&Link=%3Chttps%3A%2F%2Fpostman-echo.com%2Fget%3E%3B%20rel%3D%22successor-version%22",
< "method": "GET"
< },
< {
< "url": "https://api.github.com/",
< "method": "GET",
< "headers": {
< "X-GitHub-Api-Version": "2022-11-28"
< }
< },
< {
< "url": "https://gitlab.com/api/v3/projects",
< "method": "GET"
< }
< ],
< "sunset_warning_days": 90,
< "alert_webhook_url": "",
< "baseline_name": "DEFAULT",
< "request_timeout_seconds": 15,
< "concurrency": 5,
< "max_redirects": 3,
< "max_run_seconds": 240
<}
<EOF
$curl "https://api.apify.com/v2/actors/kingii98~third-party-api-deprecation-and-sunset-header-watch/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'