< Back
Set-SmaAsset
Post
NAME Set-SmaAsset
SYNOPSIS
SYNTAX
Set-SmaAsset [-AssetID] <Int32> [-Body] <Hashtable> [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
Updates an SMA asset.
PARAMETERS
-AssetID <Int32>
Specifies the asset ID to update.
Required? true
Position? 0
Default value 0
Accept pipeline input? False
Accept wildcard characters? false
-Body <Hashtable>
A hashtable-formatted payload containing the asset information. See example.
Required? true
Position? 1
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
PSCustomObject
NOTES
-------------------------- EXAMPLE 1 --------------------------
PS> $SetAssetBody = @{
'Assets' = @(
@{
'id' = 10000
'field_10000' = 'My String'
}
)
}
PS> Set-SmaAsset -Body $SetAssetBody
Updates the field 'field_10000' with string 'My String' on asset with ID 1234. Get asset field identities using
Get-SmaAsset with query parameters `"?shaping=asset all"` on a similar asset if needed.
RELATED LINKS
Online Version: https://github.com/ArtisanByteCrafter/K ... maAsset.md
SYNOPSIS
SYNTAX
Set-SmaAsset [-AssetID] <Int32> [-Body] <Hashtable> [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
Updates an SMA asset.
PARAMETERS
-AssetID <Int32>
Specifies the asset ID to update.
Required? true
Position? 0
Default value 0
Accept pipeline input? False
Accept wildcard characters? false
-Body <Hashtable>
A hashtable-formatted payload containing the asset information. See example.
Required? true
Position? 1
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
PSCustomObject
NOTES
-------------------------- EXAMPLE 1 --------------------------
PS> $SetAssetBody = @{
'Assets' = @(
@{
'id' = 10000
'field_10000' = 'My String'
}
)
}
PS> Set-SmaAsset -Body $SetAssetBody
Updates the field 'field_10000' with string 'My String' on asset with ID 1234. Get asset field identities using
Get-SmaAsset with query parameters `"?shaping=asset all"` on a similar asset if needed.
RELATED LINKS
Online Version: https://github.com/ArtisanByteCrafter/K ... maAsset.md