< Back
Set-SmaServiceDeskTicket
Post
NAME Set-SmaServiceDeskTicket
SYNOPSIS
SYNTAX
Set-SmaServiceDeskTicket [-TicketID] <String> -Body <Hashtable> [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
Updates a ticket.
PARAMETERS
-Body <Hashtable>
The payload of the update, in hashtable format. See example.
Required? true
Position? named
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
-TicketID <String>
Specifies the ticket id to update
Required? true
Position? 0
Default value None
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> $processedBody = @{
'Tickets' = @(
@{
status = 1 # status ID
'custom_14' = "my value for custom_14"
'resolution' = "my resolution"
}
)
}
PS> Set-SmaServiceDeskTicket -TicketID 1234 -Body $TicketUpdate
Updates a ticket with ID 1234 with the information provided by the $body.
RELATED LINKS
Online Version: https://github.com/ArtisanByteCrafter/K ... kTicket.md
SYNOPSIS
SYNTAX
Set-SmaServiceDeskTicket [-TicketID] <String> -Body <Hashtable> [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
Updates a ticket.
PARAMETERS
-Body <Hashtable>
The payload of the update, in hashtable format. See example.
Required? true
Position? named
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
-TicketID <String>
Specifies the ticket id to update
Required? true
Position? 0
Default value None
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> $processedBody = @{
'Tickets' = @(
@{
status = 1 # status ID
'custom_14' = "my value for custom_14"
'resolution' = "my resolution"
}
)
}
PS> Set-SmaServiceDeskTicket -TicketID 1234 -Body $TicketUpdate
Updates a ticket with ID 1234 with the information provided by the $body.
RELATED LINKS
Online Version: https://github.com/ArtisanByteCrafter/K ... kTicket.md