---
title: "Update a Data Forwarder for an Organization"
url: https://docs.sentry.io/api/integrations/update-a-data-forwarder-for-an-organization/
---

# Update a Data Forwarder for an Organization | Sentry Docs

PUT /api/0/organizations/{organization\_id\_or\_slug}/forwarding/{data\_forwarder\_id}/

Updates a data forwarder for an organization or update a project-specific override. Updates to the data forwarder's configuration require `org:write` permissions, and the entire configuration to be provided, including the `project_ids` field.

To configure project-specific overrides, specify only the following fields:

* 'project\_id': The ID of the project to create/modify the override for.
* 'overrides': Follows the same format as `config` but all provider fields are optional, since only specified fields are overridden.
* 'is\_enabled': To enable/disable the forwarder for events on the specific project.

Overrides can be performed with `project:write` permissions on the project being modified.

### Path Parameters

* `organization_id_or_slug` *(string)*

  REQUIRED

  The ID or slug of the organization the resource belongs to.

* `data_forwarder_id` *(integer)*

  REQUIRED

  The ID of the data forwarder you'd like to query.

### Body Parameters

* `organization_id` *(integer)*

  REQUIRED

  The ID of the organization related to the data forwarder.

* `provider` *(string)*

  REQUIRED

  The provider of the data forwarder. One of "segment", "sqs", or "splunk".

  * `segment` - Segment
  * `sqs` - Amazon SQS
  * `splunk` - Splunk

* `is_enabled` *(boolean)*

  Whether the data forwarder is enabled.

* `enroll_new_projects` *(boolean)*

  Whether to enroll new projects automatically, after they're created.

* `config` *(object)*

  The configuration for the data forwarder, specific to the provider type. For a 'sqs' provider, the required keys are queue\_url, region, access\_key, secret\_key. If using a FIFO queue, you must also provide a message\_group\_id, though s3\_bucket is optional. For a 'segment' provider, the required keys are write\_key. For a 'splunk' provider, the required keys are instance\_url, index, source, token.

* `project_ids` *(array(integer))*

  The IDs of the projects connected to the data forwarder. Missing project IDs will be unenrolled if previously enrolled.

### Scopes

You need to [authenticate via bearer auth token.](https://docs.sentry.io/api/auth.md)

`<auth_token>` requires one of the following scopes:

* `org:write`

```
curl https://sentry.io/api/0/organizations/{organization_id_or_slug}/forwarding/{data_forwarder_id}/ \
 -H 'Authorization: Bearer <auth_token>' \
 -X PUT \
 -H 'Content-Type: application/json' \
 -d '{}'
```

RESPONSESCHEMA

```
Copied
{
  "id": "1",
  "organizationId": "1",
  "isEnabled": true,
  "enrollNewProjects": true,
  "enrolledProjects": [],
  "provider": "sqs",
  "config": {
    "region": "us-east-1",
    "queue_url": "https://sqs.us-east-1.amazonaws.com/01234567890/sentry-errors.fifo",
    "s3_bucket": "sentry-errors-bucket",
    "access_key": "AKIAIOSFODNN7EXAMPLE",
    "secret_key": "wJalrXUtnFEMI1K7MDENGSbPxRfiCYEXAMPLEKEY",
    "message_group_id": "sentry-errors"
  },
  "projectConfigs": [],
  "dateAdded": "2025-11-01T00:00:00.000000Z",
  "dateUpdated": "2025-11-01T00:00:00.000000Z"
}
```

---

Find other pages: [Sitemap](https://docs.sentry.io/sitemap.md) lists every page with a one-line summary, and [llms.txt](https://docs.sentry.io/llms.txt) gives an overview with guidance for agents.
