You are not logged in.
Pages: 1
Hi all,
I installed the tag plugin (pluginsGLPI/tag) and added tags to a couple of computers (from the GUI), hoping that I would be able to use the Rest API to find those computers.
However, when I call listSearchOptions/Computer I don't see anything indicating that the tag plugin exposes a possibility to search by tags.
Should I see something in the output from the below request, or is the tag plugin simply not integrated with the API?
curl -s -X GET -H 'Content-Type: application/json' -H "Session-Token: ${GLPI_SESSION_TOKEN}" -H "App-Token: ${GLPI_APP_TOKEN}" "${GLPI_API_ENDPOINT}/listSearchOptions/Computer" | jq .
Offline
For your question - it's the listSearchOptions you want to find the numerical ID of Tags. Then you can forcedisplay it in your query.
Check out the API documentation.
I'd love to know how to list the dropdown from tags.
Last edited by evobe (2023-10-24 05:23:20)
Offline
Pages: 1