2021-05-18 05:57:40 +03:00
---
external help file: SnipeItPS-help.xml
Module Name: SnipeitPS
online version:
schema: 2.0.0
---
# New-AssetMaintenance
## SYNOPSIS
2021-05-19 15:51:49 +03:00
Add a new Asset maintenence to Snipe-it asset system
2021-05-18 05:57:40 +03:00
## SYNTAX
```
New-AssetMaintenance [-asset_id] < Int32 > [-supplier_id] < Int32 > [-asset_maintenance_type] < String >
[-title] < String > [-start_date] < DateTime > [[-completion_date] < DateTime > ] [[-is_warranty] < Boolean > ]
[[-cost] < Decimal > ] [[-notes] < String > ] [-url] < String > [-apiKey] < String > [-WhatIf] [-Confirm]
[< CommonParameters > ]
```
## DESCRIPTION
2021-05-19 15:51:49 +03:00
Long description
2021-05-18 05:57:40 +03:00
## EXAMPLES
2021-05-19 15:51:49 +03:00
### EXAMPLE 1
```
New-AssetMaintenence -asset_id 1 -supplier_id 1 -title "replace keyboard" -start_date 2021-01-01
2021-05-18 05:57:40 +03:00
```
## PARAMETERS
### -apiKey
2021-05-19 15:51:49 +03:00
Users API Key for Snipeit, can be set using Set-Info command
2021-05-18 05:57:40 +03:00
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Required: True
2021-05-19 15:51:49 +03:00
Position: 11
2021-05-18 05:57:40 +03:00
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -asset_id
2021-05-19 15:51:49 +03:00
Required ID of the asset, this can be got using Get-Asset
2021-05-18 05:57:40 +03:00
```yaml
Type: Int32
Parameter Sets: (All)
Aliases:
Required: True
2021-05-19 15:51:49 +03:00
Position: 1
Default value: 0
2021-05-18 05:57:40 +03:00
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
2021-05-19 15:51:49 +03:00
Position: 3
2021-05-18 05:57:40 +03:00
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
2021-05-19 15:51:49 +03:00
Position: 6
2021-05-18 05:57:40 +03:00
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -cost
2021-05-19 15:51:49 +03:00
Optional cost
2021-05-18 05:57:40 +03:00
```yaml
Type: Decimal
Parameter Sets: (All)
Aliases:
Required: False
2021-05-19 15:51:49 +03:00
Position: 8
Default value: 0
2021-05-18 05:57:40 +03:00
Accept pipeline input: False
Accept wildcard characters: False
```
### -is_warranty
2021-05-19 15:51:49 +03:00
Optional Maintenance done under warranty
2021-05-18 05:57:40 +03:00
```yaml
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
2021-05-19 15:51:49 +03:00
Position: 7
Default value: False
2021-05-18 05:57:40 +03:00
Accept pipeline input: False
Accept wildcard characters: False
```
### -notes
2021-05-19 15:51:49 +03:00
Optional cost
2021-05-18 05:57:40 +03:00
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Required: False
2021-05-19 15:51:49 +03:00
Position: 9
2021-05-18 05:57:40 +03:00
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -start_date
2021-05-19 15:51:49 +03:00
Required start date
2021-05-18 05:57:40 +03:00
```yaml
Type: DateTime
Parameter Sets: (All)
Aliases:
Required: True
2021-05-19 15:51:49 +03:00
Position: 5
2021-05-18 05:57:40 +03:00
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -supplier_id
2021-05-19 15:51:49 +03:00
Required maintenance supplier
2021-05-18 05:57:40 +03:00
```yaml
Type: Int32
Parameter Sets: (All)
Aliases:
Required: True
2021-05-19 15:51:49 +03:00
Position: 2
Default value: 0
2021-05-18 05:57:40 +03:00
Accept pipeline input: False
Accept wildcard characters: False
```
### -title
2021-05-19 15:51:49 +03:00
Required Title of maintenance
2021-05-18 05:57:40 +03:00
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Required: True
2021-05-19 15:51:49 +03:00
Position: 4
2021-05-18 05:57:40 +03:00
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -url
2021-05-19 15:51:49 +03:00
URL of Snipeit system, can be set using Set-Info command
2021-05-18 05:57:40 +03:00
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Required: True
2021-05-19 15:51:49 +03:00
Position: 10
2021-05-18 05:57:40 +03:00
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