--- external help file: SnipeitPS-help.xml Module Name: SnipeitPS online version: schema: 2.0.0 --- # New-SnipeitAssetMaintenance ## SYNOPSIS Add a new Asset maintenence to Snipe-it asset system ## SYNTAX ``` New-SnipeitAssetMaintenance [-asset_id] [-supplier_id] [-asset_maintenance_type] [-title] [-start_date] [[-completion_date] ] [[-is_warranty] ] [[-cost] ] [[-notes] ] [[-url] ] [[-apiKey] ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION Long description ## EXAMPLES ### EXAMPLE 1 ``` New-SnipeitAssetMaintenence -asset_id 1 -supplier_id 1 -title "replace keyboard" -start_date 2021-01-01 ``` ## PARAMETERS ### -apiKey Deprecated parameter, please use Connect-SnipeitPS instead. Users API Key for Snipeit. ```yaml Type: String Parameter Sets: (All) Aliases: Required: False Position: 11 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -asset_id Required ID of the asset, this can be got using Get-Asset ```yaml Type: Int32 Parameter Sets: (All) Aliases: Required: True Position: 1 Default value: 0 Accept pipeline input: False Accept wildcard characters: False ``` ### -asset_maintenance_type {{ Fill asset_maintenance_type Description }} ```yaml Type: String Parameter Sets: (All) Aliases: Required: True Position: 3 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -completion_date {{ Fill completion_date Description }} ```yaml Type: DateTime Parameter Sets: (All) Aliases: Required: False Position: 6 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -cost Optional cost ```yaml Type: Decimal Parameter Sets: (All) Aliases: Required: False Position: 8 Default value: 0 Accept pipeline input: False Accept wildcard characters: False ``` ### -is_warranty Optional Maintenance done under warranty ```yaml Type: Boolean Parameter Sets: (All) Aliases: Required: False Position: 7 Default value: False Accept pipeline input: False Accept wildcard characters: False ``` ### -notes Optional cost ```yaml Type: String Parameter Sets: (All) Aliases: Required: False Position: 9 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -start_date Required start date ```yaml Type: DateTime Parameter Sets: (All) Aliases: Required: True Position: 5 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -supplier_id Required maintenance supplier ```yaml Type: Int32 Parameter Sets: (All) Aliases: Required: True Position: 2 Default value: 0 Accept pipeline input: False Accept wildcard characters: False ``` ### -title Required Title of maintenance ```yaml Type: String Parameter Sets: (All) Aliases: Required: True Position: 4 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -url Deprecated parameter, please use Connect-SnipeitPS instead. URL of Snipeit system. ```yaml Type: String Parameter Sets: (All) Aliases: Required: False Position: 10 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -Confirm Prompts you for confirmation before running the cmdlet. ```yaml Type: SwitchParameter Parameter Sets: (All) Aliases: cf Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -WhatIf Shows what would happen if the cmdlet runs. The cmdlet is not run. ```yaml Type: SwitchParameter Parameter Sets: (All) Aliases: wi Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). ## INPUTS ## OUTPUTS ## NOTES ## RELATED LINKS