--- title: "Configure activation code: Request" slug: "configure-activation-code-request" tags: ["Reference", "NDRC 4.x", "Customer", "Network Security", "NDR 4.x"] updated: 2026-09-09T18:07:45Z published: 2026-09-09T18:07:45Z canonical: "docs.trellix.com/configure-activation-code-request" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Configure activation code: Request To configure the activation code, send the following request: ``` PUT https://:/config/v1/dtigw/activation ``` Required header: ``` Cookie: px= ``` > [!NOTE] > Note > > To use this request, your user account must be assigned to the Admin role. ### Options - IA_IP_address—The IP address of the NDR appliance running the NDR API. - port_number—The port number of the NDR appliance running the NDR API. - token—This token authenticates the session. By default, the session times out after 24 hours. Request body: ``` {  "code": "" } ``` ### Example ``` PUT https://xxx.xxx.xxx.xxx:443/config/v1/dtigw/activation ``` Required header: ``` Cookie: px=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ``` ### Configure activation code: Response ``` HTTP/1.1 [Response Code] [Response Message] Date: [Date] ``` ###### Response fields - Response Code—A standard HTTP response code. - 200—Request successful; the configuration was successful. - Response Message—A standard HTTP response message. - OK—Request successful; the configuration was successful. - Date—Standard HTML date format. ###### Example ``` HTTP/1.1 200 OK Date: Thu, 15 Aug 2019 17:30:04 GMT Content-Type: application/json; charset=utf-8 ``` ### cURL code sample: Configure activation code ``` curl -k --cookie "px=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" -X PUT https://xxx.xxx.xxx.xxx:443/config/v1/dtigw/activation -d '{"code": }' ``` This cURL sample includes the following options: - `-k`—This option explicitly allows cURL to perform insecure SSL connections and transfers, which allows you to test your SSL connection without installing a CA certificate. - `--cookie "px=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"`—This option specifies the authentication token for this session. - `-X PUT`—This option specifies using the PUT method. - `https://xxx.xxx.xxx.xxx:443/config/v1/dtigw/activation`—The activation request URL. Replace `xxx.xxx.xxx.xxx` with the IP address of your NDR appliance. - `-d '{"code": <activation_code>}'`—Specifies your activation code. ###### Results This example configures the activation code.