---
title: "Apply custom contract key"
method: PUT
path: "/api/v1/license/apply-contract-key"
tags: ["License"]
---

# Apply custom contract key

`PUT /api/v1/license/apply-contract-key`

## Request

- Base URL: `http://miner`
- URL: `http://miner/api/v1/license/apply-contract-key`
- Auth: none declared
- TypeScript: <https://skmtc.dev/256foundation/apis/braiins-os-public-rest-api/docs/api/v1/license/apply-contract-key/put.ts> (a function with typed inputs; its response is checked against the schema)

Apply custom contract key.

## Request body

- ApplyContractKeyRequest
  - `contract_key` string, required: Licence contract key string

## Response `200`

Successful response with successful flag to indicate success.

- ApplyContractKeyResponse
  - `successful` boolean, required: Flag if custom license was successfully installed

---

[API](https://skmtc.dev/256foundation/apis/braiins-os-public-rest-api.md) - [All operations](https://skmtc.dev/256foundation/apis/braiins-os-public-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/256foundation/apis/braiins-os-public-rest-api/revisions/d341c8e1d506?raw)
