I canot get the api/V3/Config/GetConfigItemsByClass api call working keep getting a 404
Best Answer
-
Nicholas_Velich Cireson Consultant Ninja IT Monkey ✭✭✭✭Hi Stuart,
Here is an example of the call in my environment that successfully returns Hardware Asset data that contains "01" in the name:
http://localhost/api/V3/Config/GetConfigItemsByClass?userId=f2261949-6700-521d-e522-492b39ba8e4c&isUserScoped=false&searchFilter=01&objectClassId=c0c58e7f-7865-55cc-4600-753305b9be64
There are four required parameters:
userId: Id of the user making the call, found most easily via browser Dev console by typing session.user.Id
isUserScoped: true or false
searchFilter: String for which to filter the results. Will use a "like" comparison.
objectClassId: Id of the class of objects you are trying to return. Found in a variety of ways, such as Get-SCSMClass in PowerShell
Thanks,
Nick5
Answers
Here is an example of the call in my environment that successfully returns Hardware Asset data that contains "01" in the name:
http://localhost/api/V3/Config/GetConfigItemsByClass?userId=f2261949-6700-521d-e522-492b39ba8e4c&isUserScoped=false&searchFilter=01&objectClassId=c0c58e7f-7865-55cc-4600-753305b9be64
There are four required parameters:
userId: Id of the user making the call, found most easily via browser Dev console by typing session.user.Id
isUserScoped: true or false
searchFilter: String for which to filter the results. Will use a "like" comparison.
objectClassId: Id of the class of objects you are trying to return. Found in a variety of ways, such as Get-SCSMClass in PowerShell
Thanks,
Nick