Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions verkadaModule/Public/Connect-Verkada.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function Connect-Verkada
'x-api-key' = $Global:verkadaConnection.x_api_key
}

$x_verkada_auth_api = Invoke-RestMethod -Uri "https://$($region).verkada.com/token" -Method 'POST' -Headers $login_headers | Select-Object -ExpandProperty token
$x_verkada_auth_api = Invoke-RestMethod -Uri "https://$($region).verkada.com/token" -Method 'POST' -Headers $login_headers -StatusCodeVariable responseCode | Select-Object -ExpandProperty token
$Global:verkadaConnection.x_verkada_auth_api = $x_verkada_auth_api

$body = @{
Expand All @@ -119,7 +119,7 @@ function Connect-Verkada
'x-verkada-auth' = $Global:verkadaConnection.x_verkada_auth_api
}

$response = Invoke-RestMethod -Uri "https://$($region).verkada.com/core/v1/audit_log" -Body $body -Headers $headers -StatusCodeVariable responseCode
#$response = Invoke-RestMethod -Uri "https://$($region).verkada.com/core/v1/audit_log" -Body $body -Headers $headers -StatusCodeVariable responseCode
if (!($noOutput)){Write-Host -ForegroundColor green "$responseCode - Successfully connected to Verkada Command with API Token"}
return
} catch [Microsoft.PowerShell.Commands.HttpResponseException] {
Expand Down
2 changes: 1 addition & 1 deletion verkadaModule/Public/Set-VerkadaHelixEvent.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function Set-VerkadaHelixEvent{

try {
Invoke-VerkadaRestMethod $url $org_id $x_verkada_auth_api $query_params -body_params $body_params -method PATCH
return return "Event updated successfully"
return "Event updated successfully"
}
catch [Microsoft.PowerShell.Commands.HttpResponseException] {
$err = $_.ErrorDetails | ConvertFrom-Json
Expand Down
4 changes: 2 additions & 2 deletions verkadaModule/verkadaModule.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Verkada SE Community
#
# Generated on: 10/21/2025
# Generated on: 10/23/2025
#

@{
Expand All @@ -12,7 +12,7 @@
RootModule = 'verkadaModule.psm1'

# Version number of this module.
ModuleVersion = '0.9.9'
ModuleVersion = '0.9.10'

# Supported PSEditions
CompatiblePSEditions = 'Desktop', 'Core'
Expand Down