---
title: "Change Event Notification Settings"
method: POST
path: "/hooks_settings/{location_id}"
tags: ["Webhooks"]
---

# Change Event Notification Settings

`POST /hooks_settings/{location_id}`

## Path parameters

- `location_id` number, required

## Headers

- `Accept` string, required
- `Content-Type` string, required
- `Authorization` string, required

## Request body

- object
  - `urls` unknown[], required — List of addresses to send notifications to
    - unknown
  - `active` number, required — 1 - notifications are active, 0 - not active
  - `salon` number — 1 - send events by location entity, 0 - do not send
  - `service_category` number — 1 - send events by service category entity, 0 - do not send
  - `service` number — 1 - send events by service entity, 0 - do not send
  - `good` number — 1 - send events by product entity, 0 - don't send
  - `master` number — 1 - send events by team member entity, 0 - don't send
  - `client` number — 1 - send events by client entity, 0 - don't send
  - `record` number — 1 - send events by appointment entity, 0 - do not send
  - `goods_operations_sale` number — 1 - send events by the product sale entity, 0 - do not send
  - `goods_operations_receipt` number — 1 - send events by the entity arrival of products, 0 - do not send
  - `goods_operations_consumable` number — 1 - send events by the consumable write-off entity, 0 - do not send
  - `goods_operations_stolen` number — 1 - send events by the product write-off entity, 0 - do not send
  - `goods_operations_move` number — 1 - send events by the product movement entity, 0 - no send
  - `finances_operation` number — 1 - send events by entity financial operation, 0 - no send
  - `self_sending` number — 1 - The webhook creator will receive events triggered by their own actions, 0 - The webhook creator will not receive events triggered by their own actions

## Response `201`

Created

- HooksSettingsResponseDataTypes — Event notification settings
  - `success` boolean — Execution success status (true)
  - `data` object — Object with data
    - `urls` string[] — List of addresses to send notifications to
    - `active` integer — 1 - notifications are active, 0 - not active
    - `salon` integer — 1 - send events by location entity, 0 - do not send
    - `service_category` integer — 1 - send events by service category entity, 0 - do not send
    - `service` integer — 1 - send events by service entity, 0 - do not send
    - `good` integer — 1 - send events by product entity, 0 - don't send
    - `master` integer — 1 - send events by team member entity, 0 - don't send
    - `client` integer — 1 - send events by client entity, 0 - don't send
    - `record` integer — 1 - send events by appointment entity, 0 - do not send
    - `goods_operations_sale` integer — 1 - send events by the product sale entity, 0 - do not send
    - `goods_operations_receipt` integer — 1 - send events by the entity arrival of products, 0 - do not send
    - `goods_operations_consumable` integer — 1 - send events by the consumable write-off entity, 0 - do not send
    - `goods_operations_stolen` integer — 1 - send events by the product write-off entity, 0 - do not send
    - `goods_operations_move` integer — 1 - send events by the product movement entity, 0 - no send
    - `finances_operation` integer — 1 - send events by entity financial operation, 0 - no send
  - `meta` object[] — Metadata (empty array)

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.dev/alteg/apis/developer-tools.md) · [All operations](https://skmtc.dev/alteg/apis/developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/alteg/developer-tools/revisions/c89b6494ffd2/schema)
