> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# RerunActivation

# Package: triggers

# Namespace: EsbConfigResolver

# Method link: https://dev.wix.com/docs/api-reference/business-management/automations/triggers/triggered-events/rerun-activation.md

## Permission Scopes:
Set Up Automations: SCOPE.CRM.SETUP-AUTOMATIONS

## Introduction

Reruns a previous activation, reusing its original payload and external entity ID.


Use this to retry an activation that failed, after you've resolved the underlying issue. A rerun creates a new activation. You can find the original `activationId` in the automation's run log on the automations page.

---

## REST API

### Schema

```
 Method: rerunActivation
 Description: Reruns a previous activation, reusing its original payload and external entity GUID.   Use this to retry an activation that failed, after you've resolved the underlying issue. A rerun creates a new activation. You can find the original `activationId` in the automation's run log on the automations page.
 URL: https://www.wixapis.com/automations/esbConfigResolver/v1/events/rerun-activation
 Method: POST
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  activationId
 Method parameters: 
   param name: activationId | type: activationId | description: GUID of the activation to rerun. Its original payload and external entity GUID are reused. | required: true | validation: format GUID
   param name: options | type: RunOptions | description: Options that control how an activation is executed.  
        - name: skipDelays | type: boolean | description: Whether to skip the automation's delay actions so it runs immediately.  
 Return type: RerunActivationResponse
  - name: activationId | type: string | description: GUID of the new activation created by the rerun.  | validation: format GUID


```

### Examples

### RerunActivation
```curl
~~~cURL
curl POST https://www.wixapis.com/automations/v1/events/rerun-activation  \
  -H 'Content-Type: application/json;charset=UTF-8' \
  -H 'Authorization: <AUTH>' \
  -d '{
    "activationId": "f3c9a2e1-8b7d-4c6a-9f1e-2d3c4b5a6e7f",
    "options": {
      "skipDelays": true
    }
  }'
~~~
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.automations.activations.rerunActivation(activationId, options)
 Description: Reruns a previous activation, reusing its original payload and external entity GUID.   Use this to retry an activation that failed, after you've resolved the underlying issue. A rerun creates a new activation. You can find the original `activationId` in the automation's run log on the automations page.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  activationId
 Method parameters: 
   param name: activationId | type: string | description: GUID of the activation to rerun. Its original payload and external entity GUID are reused. | required: true | validation: format GUID
   param name: options | type: RerunActivationOptions  none  
        - name: options | type: RunOptions | description: Options that control how the activation is rerun.  
           - name: skipDelays | type: boolean | description: Whether to skip the automation's delay actions so it runs immediately.  
 Return type: PROMISE<RerunActivationResponse>
  - name: activationId | type: string | description: GUID of the new activation created by the rerun.  | validation: format GUID


```

### Examples

### rerunActivation
```javascript
import { activations } from '@wix/automations';

async function rerunActivation(activationId,options) {
  const response = await activations.rerunActivation(activationId,options);
};
```

### rerunActivation (with elevated permissions)
```javascript
import { activations } from '@wix/automations';
import { auth } from '@wix/essentials';

async function myRerunActivationMethod(activationId,options) {
  const elevatedRerunActivation = auth.elevate(activations.rerunActivation);
  const response = await elevatedRerunActivation(activationId,options);
}
```

### rerunActivation (self-hosted)
Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { activations } from '@wix/automations';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { activations },
  // Include the auth strategy and host as relevant
});


async function rerunActivation(activationId,options) {
  const response = await myWixClient.activations.rerunActivation(activationId,options);
};
```

---