← Netlify

Rollback Deploy with Netlify API

Pipedream makes it easy to connect APIs for Netlify and 900+ other apps remarkably fast.

Trigger workflow on
HTTP requests, schedules and app events
Next, do this
Rollback Deploy with the Netlify API
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

Create a workflow to Rollback Deploy with the Netlify API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the Rollback Deploy action
    1. Connect your Netlify account
    2. Select a Site ID
    3. Select a Deploy ID
  2. Select a trigger to run your workflow on HTTP requests, schedules or app events
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger

Integrations

Rollback Deploy with Netlify API on New Requests (Payload Only) from HTTP / Webhook API
HTTP / Webhook + Netlify
 
Try it
Rollback Deploy with Netlify API on New Item in Feed from RSS API
RSS + Netlify
 
Try it
Rollback Deploy with Netlify API on New Message from Discord API
Discord + Netlify
 
Try it
Rollback Deploy with Netlify API on New Message In Channels from Slack API
Slack + Netlify
 
Try it
Rollback Deploy with Netlify API on New Message in Channel from Discord Bot API
Discord Bot + Netlify
 
Try it

Details

This is a pre-built, open source component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Rollback Deploy on Netlify
Description:Restores an old deploy and makes it the live version of the site. [See docs](https://docs.netlify.com/api/get-started/#restore-deploy-rollback)
Version:0.0.1
Key:netlify-rollback-deploy

Code

import netlify from "../../netlify.app.mjs";

export default {
  key: "netlify-rollback-deploy",
  name: "Rollback Deploy",
  description: "Restores an old deploy and makes it the live version of the site. [See docs](https://docs.netlify.com/api/get-started/#restore-deploy-rollback)",
  version: "0.0.1",
  type: "action",
  props: {
    netlify,
    siteId: {
      propDefinition: [
        netlify,
        "siteId",
      ],
    },
    deployId: {
      propDefinition: [
        netlify,
        "deployId",
        (c) => ({
          siteId: c.siteId,
        }),
      ],
    },
  },
  async run({ $ }) {
    const response = this.netlify.rollbackDeploy(this.siteId, this.deployId);
    $.export("$summary", "Rolling back deploy");
    return response;
  },
};

Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
NetlifynetlifyappThis component uses the Netlify app.
Site IDsiteIdstringSelect a value from the drop down menu.
Deploy IDdeployIdstringSelect a value from the drop down menu.

Authentication

Netlify uses OAuth authentication. When you connect your Netlify account, Pipedream will open a popup window where you can sign into Netlify and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Netlify API.

Pipedream requests the following authorization scopes when you connect your account:

About Netlify

All-in-one platform for automating modern web projects

More Ways to Use Netlify

Triggers

New Form Submission (Instant) from the Netlify API

Emit new event when a user submits a form

 
Try it
New Deploy Failure (Instant) from the Netlify API

Emit new event when a new deployment fails

 
Try it
New Deploy Success (Instant) from the Netlify API

Emit new event when a new deployment is completed

 
Try it
New Deploy Start (Instant) from the Netlify API

Emit new event when a new deployment is started

 
Try it

Actions

Get Site with the Netlify API

Get a specified site. See docs

 
Try it
List Files with the Netlify API

Returns a list of all the files in the current deploy. See docs

 
Try it
List Site Deploys with the Netlify API

Returns a list of all deploys for a specific site. See docs

 
Try it