You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2018-12-05 17:33:50

lordbat
Member
From: Spain
Registered: 2016-02-12
Posts: 158

[GLPI 9.1.4] API Rest - searchText Filter - group_id on computers

Hi, im trying to filter by group_id to Get All items from computers but doesn't work.

this parameter accept id? or is only text? if is the 2nd option, i try with expand_dropdowns=true to get name instead ID but doesn't work even.

im testing on glpi 9.1.4

My example:

http://my_server/glpi/apirest.php/computer?expand_dropdowns=true&session_token=8051cj90a25e1g7ta5kilmb0e7&app_token=bom7naafpifuaqtdi8i1mvqzlt1mfyrtskp3taue&searchText[group_id]=6&range=0-1

i am missing something?


Thanks and regards!


You can mark this thread as [Solved] in the subject of your thread. (This is only available edit of the first post.) It is good for users who help others to quickly see which post is still open.
############################################################

Offline

#2 2018-12-05 17:44:18

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,287

Re: [GLPI 9.1.4] API Rest - searchText Filter - group_id on computers

/search/Computer?is_deleted=0&criteria[0][field]=71&criteria[0][searchtype]=equals&criteria[0][value]=$myGroupID


Trouver la panne avant de réparer...
GLPI10.0.16 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.3 reports 1.16.0 formcreator 2.13.9, datainjection 2.13.5 fields 1.21.9

Offline

#3 2018-12-17 11:48:35

lordbat
Member
From: Spain
Registered: 2016-02-12
Posts: 158

Re: [GLPI 9.1.4] API Rest - searchText Filter - group_id on computers

thanks LaDenrée!


You can mark this thread as [Solved] in the subject of your thread. (This is only available edit of the first post.) It is good for users who help others to quickly see which post is still open.
############################################################

Offline

Board footer

Powered by FluxBB