---
title: "Toggle Outgoing Webhook Status"
method: PATCH
path: "/company/v1/webhooks/{webhookId}/toggle"
tags: ["outgoing webhooks (usersService)"]
---

# Toggle Outgoing Webhook Status

`PATCH /company/v1/webhooks/{webhookId}/toggle`

Toggles the active status of an outgoing webhook.

## Path parameters

- `webhookId` integer, required

## Response `200`

OK

- OutgoingWebhook
  - `id` integer
  - `url` string, uri — Should be unique per portal
  - `active` boolean
  - `user_id` integer
  - `confirmed` boolean
  - `created_at` integer
  - `updated_at` integer
  - `events` OutgoingWebhookEvent[]
    - `service` 'crm' | 'tasks' | 'news_feed' | 'comments', required
    - `type` 'post' | 'comment' | 'task' | 'entity_crm', required
    - `table_name` string, nullable
    - `actions` string[], required

## Other responses

- `401` — Access token is missing or invalid
- `403` — Forbidden

---

[API](https://skmtc.net/uspacy/apis/uspacy-api-2.md) · [All operations](https://skmtc.net/uspacy/apis/uspacy-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/uspacy/uspacy-api-2/revisions/c3f48fd1c26b/schema)
