_setActive
Sets whether an Asset is Active or not.
Parameters
id
The ID of the Asset.
val
An integer value which decides if the Asset is Active or not 0 => Inactive 1 => Active
Example
Result
On Success
If the "val" parameter's value already matches the current status of the Asset:
On Failure
If the "id" parameter is not given a value or has a value less than 1:
If the "value" parameter is not given a set value:
If the "id" parameter does not match an existing asset:
Last updated