Search Web APIs
POST /searches
Description | Returns records searched using the specified Term in JSON format |
---|---|
Type of call | GET |
URL Syntax | http(s)://<servernameOrIP>/<trackitvirtuadirectory>/WebApi/searches |
Request Authorization Header | Bearer access_token received through the Token API call. |
Request Parameters | None |
Request Body | Enter the seachInput values as follows:
{ |
Execution response | Returns the count of records and the specified result fields of the records for the specified search terms |
Important considerations | Only modules Ticket (ModuleId = 24) and Solution (Moduleid = 74) are supported in Search. |
Example
http(s)://<servernameOrIP>/<trackitvirtuadirectory>/WebApi/searches
Request Authorization Header:
Bearer access_token:"ExPqpLF79Zi+vHZJIXZOGBSQVPKXlFVOfmQzMyfS7SGYJolrDAf3/LZR1qm9X+2OVY60OlEuUYOYaflcIjj7ytZ336b50mu4ieuPnx2AU2vCFgO3eqUe22Up"
Request Body:
{
"MaxContentLength": 0,
"Term": "Printer",
"Mode": 0,
"PageSize": 1,
"ModuleId": 24,
"PageNumber": 1,
"ResultFields": [
1,22
],
"OptionalParams": {
"Param1": {},
"Param2": {}
}
}
Response:
{
"Count": 1,
"ModuleId": 24,
"Result": [
{
"1": {
"DisplayName": "Ticket ID",
"Value": 107
},
"22": {
"DisplayName": "Ticket Summary",
"Value": "My printer is damaged"
}
}
]
}
Was this page helpful? Yes No
Submitting...
Thank you
Comments
Log in or register to comment.