Restore site deploy
documentedRestore a previous deploy as the live version for the site.
POST /api/v1/sites/{site_id}/deploys/{deploy_id}/restoreSitesno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.netlify.com/api/v1/sites/{{$site_id}}/deploys/{{$deploy_id}}/restore" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"site_id": "{{$site_id}}", "deploy_id": "{{$deploy_id}}"}'