---
title: "Update Incoming Webhook"
method: PATCH
path: "/company/v1/incoming_webhooks/{incomingWebhookId}"
tags: ["incoming webhooks (usersService)"]
---

# Update Incoming Webhook

`PATCH /company/v1/incoming_webhooks/{incomingWebhookId}`

Updates an existing incoming webhook. Available only for admin users.

## Path parameters

- `incomingWebhookId` integer, required

## Request body

- IncomingWebhookDto
  - `name` string
  - `active` boolean
  - `permissions` object[] — List of permissions associated with the webhook.
    - `service` 'crm' | 'activities' | 'tasks' | 'comments' | 'company' | 'newsfeed' | 'messenger' | 'groups' | 'files' | 'email', required — The service that the webhook has permission for.

## Response `200`

OK

- IncomingWebhook
  - `id` integer
  - `name` string
  - `active` boolean
  - `user_id` integer
  - `created_at` integer
  - `updated_at` integer
  - `permissions` object[] — List of permissions associated with the webhook.
    - `service` 'crm' | 'activities' | 'tasks' | 'comments' | 'company' | 'newsfeed' | 'messenger' | 'groups' | 'files' | 'email', required — The service that the webhook has permission for.
  - `webhook_url` string, uri

## Other responses

- `401` — Access token is missing or invalid
- `404` — Resource not found
- `422` — Validation error response

---

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