---
sidebar_position: 2
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# Add requests handler
 Adds a new handler to the project



`Function AddRequestsHandler(Val Project, Val OintLibrary, Val OintFunction, Val Method = "GET") Export`

  | Parameter | CLI option | Type | Required | Description |
  |-|-|-|-|-|
  | Project | --proj | String | ✔ | Project filepath |
  | OintLibrary | --lib | String | ✔ | Library name in CLI command format |
  | OintFunction | --func | String | ✔ | OpenIntegrations function name |
  | Method | --method | String | ✖ | HTTP method that will process the handler: GET, POST, MULTIPART |

  
  Returns:  Structure Of KeyAndValue - Result of handler creation

<br/>




```bsl title="1C:Enterprise/OneScript code example"
    Project      = "C:\Users\Administrator\AppData\Local\Temp\v8_8CEA_26.oint";
    OintLibrary  = "telegram";
    OintFunction = "SendTextMessage";

    Result = OPI_IntegrationProxy.AddRequestsHandler(Project, OintLibrary, OintFunction);
```