﻿---
sidebar_position: 1
---

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 | &#x2714; | Project filepath |
  | OintLibrary | --lib | String | &#x2714; | Library name in CLI command format |
  | OintFunction | --func | String | &#x2714; | OpenIntegrations function name |
  | Method | --method | String | &#x2716; | 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_85A2_1a.oint";
    OintLibrary  = "telegram";
    OintFunction = "SendTextMessage";

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




