---
title: "Replace all webhook topics"
method: PUT
path: "/webhooks/{id}/topics"
tags: ["Webhooks"]
---

# Replace all webhook topics

`PUT /webhooks/{id}/topics`

Replace all webhook topics

## Path parameters

- `id` string, uuid, required

## Request body

- ReplaceWebhookTopics — Command for replacing webhook topics
  - `webhookTopics` AddWebhookTopic[], required — List of webhook topics to replace existing ones
    - `topic` string, required — The topic name to subscribe to
    - `filters` UpdateWebhookFilter[], required — Advanced filtering configuration
      - `action` string, required — Action to filter on
      - `conditions` UpdateFilterCondition[], required — List of conditions that must all be true
        - `field` string, required — Field path to filter on
        - `operator` 'EQUALS' | 'NOT_EQUALS' | 'GREATER_THAN' | 'LESS_THAN' | 'IN' | 'NOT_IN' | 'CONTAINS', required — Filter operator for webhook conditions
        - `value` string[], required — Values to compare against

## Response `200`

The request has succeeded.

- Webhook
  - `id` string, uuid
  - `url` string, required
  - `sharedSecret` SharedSecret, required
    - `header` string
    - `credential` string, required
  - `createdDate` string, date-time, required

## Other responses

- `400` — The request is missing required parameters or has invalid parameters
- `401` — Missing or invalid token
- `403` — User does not have permission to access this resource
- `500` — Server error

---

[API](https://skmtc.dev/pax8/apis/authentication.md) · [All operations](https://skmtc.dev/pax8/apis/authentication/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pax8/authentication/revisions/4026bf405528/schema)
