updateProperties Method


updateProperties(txn, codeSpec) @beta

Update the Json properties of an existing CodeSpec.

updateProperties(txn: EditTxn, codeSpec: CodeSpec): void

@throws if unable to update the codeSpec.

Parameter Type Description
txn EditTxn The active EditTxn.
codeSpec CodeSpec The codeSpec holding Json properties values to update.

Returns - void



updateProperties(codeSpec)

Deprecated  in 5.1.9 - will not be removed until after 2026-08-04. Use CodeSpecs.updateProperties(txn, codeSpec) instead.

Update the Json properties of an existing CodeSpec.

updateProperties(codeSpec: CodeSpec): void

@throws if unable to update the codeSpec.

Parameter Type Description
codeSpec CodeSpec The codeSpec holding Json properties values to update.

Returns - void


Defined in

Last Updated: 05 May, 2026