---
title: Reschedule event deletions and blocks
description: The whole request fails if any id is not a pending scheduled action on the project.
product: general
lang: en
last_updated: 2026-11-18
token_estimate: 1493
---
# Reschedule event deletions and blocks

## Reschedule event deletions and blocks

**PATCH** `/v1/projects/{project_id}/scheduled-event-actions`

Full URL: `https://developer-api.amplitude.com/v1/projects/{project_id}/scheduled-event-actions`

> For AI agents: a documentation index is available at [/docs/llms.txt](/docs/llms.txt). Append `.md` to any page URL for markdown, or send `Accept: text/markdown`.

**Servers:**
- Production (US): `https://developer-api.amplitude.com/v1/projects/{project_id}/scheduled-event-actions`
- Production (EU): `https://developer-api.eu.amplitude.com/v1/projects/{project_id}/scheduled-event-actions`

Reschedule event deletions and blocks

The whole request fails if any id is not a pending scheduled action on the project.

## Authorizations

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| Authorization | string | Yes | — | http |

## Path parameters

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| project_id (path) | string | Yes | 12345 | Amplitude project identifier, backed by the canonical app ID. Constraints: pattern: ^[0-9]+$ |

## Header parameters

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| Idempotency-Key (header) | string | Yes | — | Required on write operations. Keys aren't stored yet, so retrying a write with the same key performs it again; a retried create makes another resource. Check whether the first attempt succeeded before you retry. Constraints: min length: 8, max length: 255 |

## Body (application/json)

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| items | object[] | Yes | — | — |
| items.id | string | Yes | — | Constraints: min length: 1 |
| items.days_from_now | integer | Yes | — | New delay until the action runs. The server computes `target_date`. Constraints: min: 1 |

## Response (application/json)

**200** — Scheduled actions updated.

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| data | object[] | Yes | — | — |
| data.id | string | Yes | — | Stable scheduled-action identifier. |
| data.object | string | Yes | — | Resource-type discriminator. Always `scheduled_event_action`. |
| data.project_id | string | Yes | — | Constraints: pattern: ^[0-9]+$ |
| data.event_type | string | Yes | — | — |
| data.display_name | string | Yes | — | Event display name when known; otherwise equal to `event_type`. |
| data.action | string | Yes | — | Work to apply when `target_date` arrives. `delete` removes the event from the tracking plan (soft-delete if ingested). `block` stops ingestion. Allowed values: delete, block |
| data.target_date | string | Yes | — | Constraints: format: date-time |
| data.status | string | Yes | — | Lifecycle of a scheduled event action. List defaults to `pending`. Allowed values: pending, canceled, completed |
| data.created_at | string | Yes | — | When the action was scheduled. Constraints: format: date-time |
| data.created_by | string | Yes | — | Login id of the user who scheduled the action. |

```json
{
  "data": [
    {
      "id": "string",
      "object": "scheduled_event_action",
      "project_id": "string",
      "event_type": "string",
      "display_name": "string",
      "action": "delete",
      "target_date": "2024-01-01T00:00:00Z",
      "status": "pending",
      "created_at": "2024-01-01T00:00:00Z",
      "created_by": "string"
    }
  ]
}
```

**400**

**401**

**403**

**404**

**429**

**500**

## Code samples

### cURL

```bash
curl -X PATCH "https://developer-api.amplitude.com/v1/projects/12345/scheduled-event-actions" \
  -H "Content-Type: application/json" \
  -H "Authorization: YOUR_API_KEY"
```

### Python

```python
import requests

response = requests.patch(
    "https://developer-api.amplitude.com/v1/projects/12345/scheduled-event-actions",
    headers={
        "Content-Type": "application/json",
        "Authorization": "YOUR_API_KEY"
    }
)
data = response.json()
```

### JavaScript

```javascript
const response = await fetch("https://developer-api.amplitude.com/v1/projects/12345/scheduled-event-actions", {
  method: "PATCH",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "YOUR_API_KEY"
  }
});
const data = await response.json();
```

### PHP

```php
<?php
$ch = curl_init("https://developer-api.amplitude.com/v1/projects/12345/scheduled-event-actions");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Content-Type: application/json",
    "Authorization: YOUR_API_KEY"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
```

### Go

```go
package main

import (
  "bytes"
  "net/http"
)

func main() {
req, _ := http.NewRequest("PATCH", "https://developer-api.amplitude.com/v1/projects/12345/scheduled-event-actions", nil)
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "YOUR_API_KEY")
  client := &http.Client{}
  resp, _ := client.Do(req)
  defer resp.Body.Close()
}
```

### Java

```java
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://developer-api.amplitude.com/v1/projects/12345/scheduled-event-actions"))
      .method("PATCH", HttpRequest.BodyPublishers.noBody())
.header("Content-Type", "application/json")
      .header("Authorization", "YOUR_API_KEY")
      .build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
```

### Ruby

```ruby
require "net/http"
require "json"

uri = URI("https://developer-api.amplitude.com/v1/projects/12345/scheduled-event-actions")
request = Net::HTTP::Patch.new(uri)
request["Content-Type"] = "application/json"
request["Authorization"] = "YOUR_API_KEY"
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == "https") do |http|
  http.request(request)
end
```

