---
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`

## Request

- Base URL: `https://app.ninjarmm.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.ninjarmm.com/v2/software-license/assignments/last-usage`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `sessionKey`
- TypeScript: <https://skmtc.dev/ninjarmm/apis/ninjaone-public-api-2-0/docs/v2/software-license/assignments/last-usage/put.ts> (a function with typed inputs; its response is checked against the schema)

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

## Changes

- **2026-07-26** `753f26d46650`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/ninjarmm/apis/ninjaone-public-api-2-0/changes/v2/software-license/assignments/last-usage/put.md)

---

[API](https://skmtc.dev/ninjarmm/apis/ninjaone-public-api-2-0.md) - [All operations](https://skmtc.dev/ninjarmm/apis/ninjaone-public-api-2-0/llms.txt) - [OpenAPI document](https://skmtc.dev/ninjarmm/apis/ninjaone-public-api-2-0/revisions/5ce571d1bb71?raw)
