---
title: "Add a license to a device"
method: POST
path: "/v1/devices/{enrollmentCode}/license"
tags: ["devices"]
---

# Add a license to a device

`POST /v1/devices/{enrollmentCode}/license`

Grant a license to a device. If the workspace limit is exceeded, the device is marked as UNLICENSED and the response indicates this.

## Path parameters

- `enrollmentCode` string, required

## Headers

- `Workspace` string, required

## Response `200`

Success

- AddLicenseResponse
  - `deviceProtectionStatus` 'protectionDisabled' | 'protected' | 'unlicensed' | 'unknown'
  - `message` string

## Other responses

- `400` — Bad request, validation error
- `401` — Unauthorized request
- `403` — Access forbidden
- `429` — Too Many Requests
- `500` — Internal server error

---

[API](https://skmtc.dev/coro/apis/coro-cybersecurity-public-api.md) · [All operations](https://skmtc.dev/coro/apis/coro-cybersecurity-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/coro/coro-cybersecurity-public-api/revisions/b635522b2393/schema)
