itglue / automation

A place for IT Glue's user community to learn ways of automating their documentation.
Apache License 2.0
99 stars 33 forks source link

Error 422 trying to push any data to GLUe #38

Open bfreitasdtiq opened 2 years ago

bfreitasdtiq commented 2 years ago

Anytime i try to push data , Ive tried Passwords,Configurations i get this error.

New-ITGluePasswords : {"errors":[{"status":422,"title":"Valid organization_id is required","source":{"pointer":"data/attributes/organization_id"}}]}

New-ITGluePasswords -organization_id 5020178 -data $PasswordObject

Password Data

$PasswordObject = @{ type = 'passwords' attributes = @{ name = 'utilname' username = 'usernametest' password = 'passwordtest' notes = "Local Admin Password for $($Env:COMPUTERNAME)" } }

bfreitasdtiq commented 2 years ago

And when doing configrations i get this one New-ITGlueConfigurations : {"errors":[{"source":{"pointer":"/data/attributes/configuration-type"},"detail":"must exist","title":"Unprocessable Entity","status":422}]}