---
title: "Update License Assignments Last Usage"
method: PUT
path: "/v2/software-license/assignments/last-usage"
tags: ["Software Licenses"]
---

# Update License Assignments Last Usage

`PUT /v2/software-license/assignments/last-usage`

Update the last usage timestamp for one or more license assignments. Supports device, app user, and contact assignment types. Maximum of 100 assignments per request.

## Request body

- object
  - `licenseId` integer — The identifier of the software license
  - `licenseeId` integer — The identifier of the licensee
  - `licenseeType` 'NODE' | 'APP_USER' | 'CONTACT' — The type of the licensee
  - `lastUsage` integer — The last usage timestamp in unix epoch seconds

## Response `204`

Last usage updated successfully

## Other responses

- `400` — Bad request - Empty list, batch size exceeded, or invalid input

---

[API](https://skmtc.net/ninjarmm/apis/ninjaone-public-api-2-0.md) · [All operations](https://skmtc.net/ninjarmm/apis/ninjaone-public-api-2-0/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ninjarmm/ninjaone-public-api-2-0/revisions/753f26d46650/schema)
