﻿---
sidebar_position: 8
---

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

# Update handler key
 Replaces the handler key with a new one



`Function UpdateHandlerKey(Val Project, Val HandlerKey, Val NewKey = "") Export`

  | Parameter | CLI option | Type | Required | Description |
  |-|-|-|-|-|
  | Project | --proj | String | &#x2714; | Project filepath |
  | HandlerKey | --handler | String | &#x2714; | Handler key |
  | NewKey | --key | String | &#x2716; | Custom key, if necessary. New standard UUID by default |

  
  Returns:  Structure Of KeyAndValue - Information about the handler

<br/>




```bsl title="1C:Enterprise/OneScript code example"
    Project    = "C:\Users\Administrator\AppData\Local\Temp\v8_9B5_45.oint";
    HandlerKey = "e52f...";
    NewKey     = "mykey";

    // Custom key

    Result = OPI_IntegrationProxy.UpdateHandlerKey(Project, HandlerKey, NewKey);

    // New random key

    Result = OPI_IntegrationProxy.UpdateHandlerKey(Project, NewKey);
```
 




