Skip to content

Commit a16d0e7

Browse files
committed
Update Get-PuTicket.ps1
1 parent 1f6617f commit a16d0e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/Public/Get-PuTicket.ps1

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function Get-PuTicket {
44
[Parameter(Mandatory,ParameterSetName="Get ticket by id")][int]$ticketId,
55
[Parameter(Mandatory,ParameterSetName="Get ticket by requestnumber")][int]$requestNumber,
66
[string]$filter,
7-
[Parameter(ParameterSetName="List tickets")][switch]$ListTickets
7+
[Parameter(ParameterSetName="List tickets",DontShow)][switch]$ListTickets
88
)
99

1010
$Uri = "$(Get-PuEndpoint)/ticket"
@@ -24,6 +24,7 @@ function Get-PuTicket {
2424
"Headers" = @{
2525
"X-Authorization-Key" = Get-PuAccessToken
2626
"Accept" = "application/vnd.api+json"
27+
"Content-Type" = "application/vnd.api+json"
2728
}
2829
"Body" = @{
2930
"filter" = $filter

0 commit comments

Comments
 (0)