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

Billing → Updates an account

AI-generated

Summary

Update a billing account by its ID with specified code, name, and optional description, sending a PUT request to the /v2/billing/accounts/{id} endpoint.

Inputs

  • id (required) — Account ID to update.
  • code (required) — Unique code used to identify the account.
  • name (required) — Display name of the account.
  • description — Optional description of the account.
  • options — Optional parameters including custom request body (which overrides other fields), custom HTTP headers, query filters, batching settings, debug flag, pagination settings, and request timeout.

Output shape

A single updated account record as returned by the API.

The operation makes a PUT request to update the specific billing account by ID. If 'customBody' is provided in options, it merges deeply and takes precedence over other fields. Debug information is added to output if enabled. Pagination options do not apply to this single-update operation.

Examples

Example 1: Update account with ID 123, setting code, name, and description.

Set 'id' to 123, 'code' to a unique string, 'name' to desired display name, and optionally 'description'. Leave options empty or as needed for advanced use.

Links

Discussion