You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operating System and PowerShell version: Windows 11, PS 5.1
Snipe It version: v7.0.13 build 15514
Expected Behavior
Check the asset out to the user specified.
Current Behavior
The error below:
> set-snipeitaccessoryowner -id 1 -assigned_to 1
Invoke-SnipeitMethod :
assigned_user assigned_asset assigned_location
------------- -------------- -----------------
{The assigned user field is required when none of assigned asset / assigned location are present.} {The assigned asset field is required when none of assigned user / assigned location are present.} {The assigned location field is req...
At C:\Program Files\WindowsPowerShell\Modules\SnipeitPS\1.10.227\Public\Set-SnipeitAccessoryOwner.ps1:69 char:27
+ $result = Invoke-SnipeitMethod @Parameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-SnipeitMethod
The text was updated successfully, but these errors were encountered:
VERBOSE: Performing the operation "Set-SnipeitAccessoryOwner" on target "ShouldProcess?".
VERBOSE: [Invoke-SnipeitMethod] Invoking method POST to URI
VERBOSE: POST with -1-byte payload
VERBOSE: received -1-byte response of content type application/json
VERBOSE: [Invoke-SnipeitMethod] Status code:
VERBOSE: @{status=error; messages=; payload=}
VERBOSE: [Invoke-SnipeitMethod] An error response was received ... resolving
Invoke-SnipeitMethod :
assigned_user assigned_asset assigned_location
------------- -------------- -----------------
{The assigned user field is required when none of assigned asset / assigned location are present.} {The assigned asset field is required when none of assigned user / assigned location are present.} {The assigned location field is req...
At C:\Program Files\WindowsPowerShell\Modules\SnipeitPS\1.10.227\Public\Set-SnipeitAccessoryOwner.ps1:69 char:27
+ $result = Invoke-SnipeitMethod @Parameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-SnipeitMethod
VERBOSE: [Invoke-SnipeitMethod] Function ended
Context
I'm trying to checkout accessories to a user and getting an error.
set-snipeitaccessoryowner -id <accessory id> -assigned_to <user id>
Your Environment
Expected Behavior
Check the asset out to the user specified.
Current Behavior
The error below:
The text was updated successfully, but these errors were encountered: