NinjaOne icon

NinjaOne

Ninja One Public API documentation. <br><br>See also: <br> <a href="https://resources.ninjarmm.com/API/Ninja+RMM+Public+API+v2.0.5+Device+Filter+Syntax.pdf">Device Filter syntax</a><br><a href="https://app.ninjarmm.com/apidocs-beta/core-resources/articles/webhooks/overview">Webhooks</a>

Actions309

SoftwareLicenses → Update License Assignments Last Usage

AI-generated

Summary

Update the last usage timestamp for a software license assignment by specifying license and licensee identifiers along with usage details.

Inputs

  • License Id — The identifier of the software license to update.
  • Licensee Id — The identifier of the licensee whose usage is being updated.
  • Licensee Type — The type of licensee (NODE, APP USER, or CONTACT).
  • Last Usage — The last usage timestamp in Unix epoch seconds.
  • Custom Body — Optionally provide arbitrary JSON to include in the request body; this deep-merges with other fields and overrides them.
  • Custom Headers — Optionally add custom HTTP headers to the update request.
  • Query Filters — Optionally add query-string parameters to filter or customize the API request.
  • Batching — Configure batching to group multiple input items into batches, controlling batch size and interval.
  • Debug — Enable to include detailed request information (URL, headers, body) in output for troubleshooting.
  • Pagination — Settings to control pagination behavior when applicable.
  • Timeout — Set a timeout period in milliseconds to wait for the server response before aborting the request.

Output shape

a single API response object representing the updated license assignment's last usage information

The output includes the API response with details about the update operation. If debug is enabled, additional request metadata is provided. Pagination settings and batching affect how multiple inputs are processed but this operation updates per license assignment; pagination is generally unused here.

Links

Discussion