Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
PSBlog007
Function Logout-Acumatica
{
param(
[Parameter(Mandatory=$true)]
[Microsoft.PowerShell.Commands.WebRequestSession]$WebSession,
$EndPoint = $env:AcumaticaTestEndPoint
)
$Uri = "$EndPoint/entity/auth/logout"
$response = Invoke-RestMethod $Uri -Method 'POST' -Headers $headers -WebSession $WebSession
return $response | ConvertTo-Json | ConvertFrom-Json
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.