Sets the Serial Number of the Asset.

Parameters

id

The ID of the Asset.

Example

FM_api('Asset_setCode', ['id' => '123', 'value' => '221100']);

Result

On Success

{'ok':1}

On Failure

If the Asset ID is not given:

{'error':'no ID provided'}

If the value is not given:

{'error':'no val provided'}

If the Asset is not found:

{'error':'asset does not exist'}