1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-10-08 22:51:57 +02:00
Files
OpenIntegrations/docs/en/md/Addons/Melezh/Console-Interface/Handlers-configuration/Update-requests-handler.mdx
Vitaly the Alpaca (bot) 0495c14412 Main build (Jenkins)
2025-09-30 20:25:53 +03:00

64 lines
1.8 KiB
Plaintext
Vendored

---
sidebar_position: 5
description: Update request handler and other functions to work with Melezh in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI]
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Update request handler
Changes the values of the request handler fields
`Function UpdateRequestsHandler(Val Project, Val HandlersKey, Val OintLibrary = "", Val OintFunction = "", Val Method = "") Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Project | --proj | String | ✔ | Project filepath |
| HandlersKey | --handler | String | ✔ | Handlers key |
| OintLibrary | --lib | String | ✖ | Library name in CLI format |
| OintFunction | --func | String | ✖ | OpenIntegrations function name |
| Method | --method | String | ✖ | HTTP method to be processed by the handler: GET, JSON, FORM |
Returns: Structure Of KeyAndValue - Result of changing the handler
<br/>
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
melezh UpdateRequestsHandler \
--proj "/proj.melezh" \
--handler "be2122262" \
--lib "vk" \
--func "CreatePost" \
--method "FORM"
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
melezh UpdateRequestsHandler ^
--proj "/proj.melezh" ^
--handler "be2122262" ^
--lib "vk" ^
--func "CreatePost" ^
--method "FORM"
```
</TabItem>
</Tabs>
```json title="Result"
{
"result": true
}
```