Skip to navigation

Enable storage accounting for an asset

This method enables storage accounting for the specified asset. Storage accounting makes an asset count toward your Managed Intelligence allowance.

When to use this method: Call it once for each asset that you uploaded before your plan moved to the new billing (a pre-migration asset). Enable storage accounting before you do either of the following:

  • Add the asset to a knowledge store.
  • Index the asset in an index for which Marengo is enabled.

An asset that you upload after your plan moves already counts toward your Managed Intelligence allowance. You do not need to call this method for it.

Before you call this method: The asset must have the ready status and a recorded size. To check, use the GET method of the /assets/{asset_id} endpoint and read the status and size fields.

After you call this method:

  • The asset counts toward your Managed Intelligence allowance from the moment of the call.
  • Enabling storage accounting is permanent. You cannot turn it off.
  • If storage accounting is already on, the method returns the same response and changes nothing.

Authentication

x-api-keystring

Your API key.

Note

You can find your API key on the API Keys page.

Path parameters

asset_idstringRequired
The unique identifier of the asset for which to enable storage accounting.

Request

This endpoint expects an object.
enabledbooleanRequired

Enables storage accounting for the asset. The only accepted value is true.

Response

Storage accounting has been successfully enabled for the asset.
asset_idstring
The unique identifier of the asset.
storage_accountingboolean
Indicates whether the platform counts the asset toward your Managed Intelligence allowance.
byteslong
The number of stored bytes that the platform counts for the asset.

Errors

400
Bad Request Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error