You are not logged in.
Pages: 1
Is there any filter I can apply into the apirest.php/Ticket/XYZ/Ticket_User that returns only the requester id (type 1)?
Response:
[
{
"id": 1,
"ticket_id": 23,
"users_id": 5,
"type": 1,
},
{
"id": 2,
"ticket_id": 23,
"users_id": 8,
"type": 3,
}
]
Expected (Using filter)
[
{
"id": 1,
"ticket_id": 23,
"users_id": 5,
"type": 1,
}
]
Last edited by stevansantos (2022-09-23 20:28:20)
Offline
Solved!
Just inserted apirest.php/Ticket/XYZ/Ticket_User/searchText[type]=1 and it returned only the requester as it shows below
[
{
"id": XXXX,
"tickets_id": XXX,
"users_id": XXX,
"type": 1,
"use_notification": 1,
"alternative_email": "",
"links": [
{
"rel": "Ticket",
"href": "/apirest.php/Ticket/XXXX"
},
{
"rel": "User",
"href": "apirest.php/User/XXX"
}
]
}
]
Offline
Pages: 1