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
Guest
From: Buenos Aires - Argentina
Registered: 2016-02-12
Posts: 117

[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 threat as [resolved] in subject of your threat. (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.
##############################################
[Prod] GLPI 9.1.4 - Ubuntu 14.04 LTS Server ------- [TEST] GLPI 9.3 - Ubuntu Server 16.04 LTS

Offline

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

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 4,293

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...
*GLPI 9.1.6+fusion9.1+1.1+behaviours1.5.0+reports+fields+appliances+pdf+badges+formcreator2.5.2 PHP7.0 Mariadb10
*GLPI 9.2.4(behaviours1.5.2+fusion9.2+1.0+applicatifs2.3.0+dashboard 0.8.9)hebergé sur serveur mutualisé.
*GLPI 9.3.3  en test (ubuntu 18.04 mariadb 10.2.4)

Offline

Board footer

Powered by FluxBB