Set a resource value by path
new value of the resource to set
Optional
path of the resource to set, default to state path
if the resource does not exist, initialize it with this type
Set a resource value by path