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 2021-07-18 19:30:27

gideon99
Member
Registered: 2020-05-06
Posts: 4

get all tickets via the apirest

hi, i want to get all the tickets with a GET request
example
$server&'/search/ticket/?is_deleted=0&as_map=0&criteria[0][link]=AND&criteria[0][field]=12&criteria[0][searchtype]=equals&criteria[0][value]=6&search=search&itemtype=Ticket&start=0'

"totalcount":1903,
"count":15,
"sort":"1",
"order":"ASC",
"data":[
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{}
],
"content-range":"0-15/1903"

tickets 1903, i get only 15
can I get the specified number of tickets?
or get the whole list

Offline

#2 2021-07-21 11:30:26

Thibaud222
Member
Registered: 2021-06-28
Posts: 23

Re: get all tickets via the apirest

You can only receiving a limited number of items per request.

If you want the rest, you can use "&range=15-20"

and use as many requests as it takes.

github.com/glpi-project/glpi/blob/9.5/bugfixes/apirest.md#get-all-items

Offline

Board footer

Powered by FluxBB