---
title: "Update Webhook"
method: PATCH
path: "/webhooks/{id}/"
tags: ["webhooks"]
---

# Update Webhook

`PATCH /webhooks/{id}/`

## Request

- Base URL: `manahook.api.manatal.com/v1` (relative, and the document’s source URL is not known)
- URL: `manahook.api.manatal.com/v1/webhooks/{id}/`
- Auth: API key in header `Authorization`

Modify specific registered webhooks action, model or url

## Path parameters

- `id` integer, required

## Request body

- WebhookUpdate: Schema field allow to edit
  - `target_url` string, uri
  - `model` 'candidate' | 'contact' | 'match' | 'job': An enumeration.
  - `action` 'create' | 'update' | 'moved' | 'status_update': An enumeration. When model is match, allowed values are create and moved. When model is candidate or contact, allowed values are create and update. When model is job, allowed value is status_update.

## Response `200`

Successful Response

- Webhook: Datbase model
  - `target_url` string, uri
  - `id` integer
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `object_id` integer
  - `content_type` string
  - `event_id` integer

## Other responses

- `404`: Not Found
- `409`: A webhook with the same event and target URL already exists
- `422`: Unprocessable Entity

---

[API](https://skmtc.dev/manatal/apis/manahook.md) - [All operations](https://skmtc.dev/manatal/apis/manahook/llms.txt) - [OpenAPI document](https://skmtc.dev/manatal/apis/manahook/revisions/7c29622da283?raw)
