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  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: 18 April, 2026