> ## Documentation Index
> Fetch the complete documentation index at: https://docs.occtoo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# updateEventDestination

> Changes the name and filter of an event destination, and its target when `configuration` is given. A new webhook endpoint, or any `configuration` for an Azure target, cancels pending deliveries: the webhook goes back to `PENDING_VERIFICATION`, and an `ACTIVE` Azure destination restarts with new events. Fails with a top-level `NotFoundError`, or `ValidationError` for invalid values or a `configuration` of another type.



**mutation** `updateEventDestination(id: ID!, input: UpdateEventDestinationInput!): UpdateEventDestinationPayload!`

## Arguments

**`id`**: `ID!` (required)

Global id of the event destination: base64 of `EventDestination:<id>`, where `<id>` is `EventDestination.id`.

---

**`input`**: `UpdateEventDestinationInput!` (required)

## Returns

`UpdateEventDestinationPayload!`

**`eventDestination`**: `EventDestination`

## Examples

```graphql Mutation
mutation UpdateEventDestination($id: ID!, $input: UpdateEventDestinationInput!) {
  updateEventDestination(id: $id, input: $input) {
    eventDestination {
      createdAt
      filter
      filterDialectVersion
      id
      name
      startsAfterSequence
    }
  }
}
```

```json Variables
{
  "id": "id",
  "input": {
    "filter": "string",
    "name": "string"
  }
}
```

```json Response
{
  "data": {
    "updateEventDestination": {
      "eventDestination": {
        "createdAt": "value",
        "filter": "string",
        "filterDialectVersion": 1,
        "id": "value",
        "name": "string",
        "startsAfterSequence": "string"
      }
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.