mirror of
https://github.com/snazy2000/SnipeitPS.git
synced 2025-12-13 18:02:30 +00:00
Fix save issue and remove unneeded code
This commit is contained in:
parent
cc72820bde
commit
55bd578ef7
2 changed files with 2 additions and 1 deletions
|
|
@ -19,6 +19,8 @@ Get-Category -url "https://assets.example.com" -token "token..." | Where-Object
|
||||||
function Get-Category()
|
function Get-Category()
|
||||||
{
|
{
|
||||||
Param(
|
Param(
|
||||||
|
[string]$search,
|
||||||
|
|
||||||
[parameter(mandatory=$true)]
|
[parameter(mandatory=$true)]
|
||||||
[string]$url,
|
[string]$url,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -116,7 +116,6 @@ function Set-User() {
|
||||||
|
|
||||||
$Body = $Values | ConvertTo-Json;
|
$Body = $Values | ConvertTo-Json;
|
||||||
|
|
||||||
$Body
|
|
||||||
$Parameters = @{
|
$Parameters = @{
|
||||||
Uri = "$url/api/v1/users/$id"
|
Uri = "$url/api/v1/users/$id"
|
||||||
Method = 'PATCH'
|
Method = 'PATCH'
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue