# License API bugs

**URL:** <https://forum.inductiveautomation.com/t/license-api-bugs/104259>\
**Category:** Module Development\
**Created:** [March 26, 2025, 4:39pm UTC](https://forum.inductiveautomation.com/t/license-api-bugs/104259 "2025-03-26T16:39:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![e.sagnelonge](https://avatars.discourse-cdn.com/v4/letter/e/7cd45c/32.png) [@e.sagnelonge](https://forum.inductiveautomation.com/u/e.sagnelonge)\
**Post date:** [March 26, 2025, 4:39pm UTC](https://forum.inductiveautomation.com/t/license-api-bugs/104259/1 "2025-03-26T16:39:46Z")

</div>

Hello,

API =\> [https://api.inductiveautomation.com/](https://api.inductiveautomation.com/)

I'm not sure if this is the right place to report this type of bug.

When generating a license using the `/licenses/generate` route, the grants are set to 0 by default, even though the license is activatable.

Additionally, I believe this leads to another issue.  
When deleting a license using the `/licenses/delete` route, the request is rejected with the following error code:

```python
{
  "message": "License Key already activated or in use. Cannot Delete.",
  "success": false,
  "status": "Failure"
}

```

The license is detected as already activated even though it has just been generated.
