You are not logged in.
Pages: 1
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
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
Pages: 1