Skip to content
← Back to Index

Message: asset.create

Creates a new instance of an asset actor.

You must specify an asset type. If not, you'll get an INVALID_MESSAGE_BODY error.

Schema

Body
typeKeystring Type of asset to create.
assetNumberstring (optional) The AssetNumber to assign to the asset. If not set, the number is automatically generated.
commandsarray of command (optional) An array of asset commands to be applied upon creation. If any command fails, the asset is not created.
externalReferencestring (optional) Optional reference to add to the asset. All must be globally unique across all assets. It can be used to locate the actor with other means than `assetID` and `assetNumber`.
createdAtany value (optional) Overrides `createdAt` value of the asset. If not set (or set to the future), the time will be set to the current system time of creation.
Response Type string

© 2024 Hantera AB. All rights reserved.