General Operations
While invoking the general operations through API, the operation defined are based on the parameter value, and the developer needs to submit a request to the url via HTTP POST or GET method.
NOTE: Before proceeding with the general operations and its corresponding parameters, please note that the parameters are case sensitive and should be used as defined.
The following operations can be performed on a request through API,
Through this operation, you can log on to the application.
URL Format
Parameters
The parameters that needs to be passed via HTTP method for updating a request are as follows,
Output Response Format
The output response format for both xml and json consists of three parameters:-
Success
When the operation is successful, the output response format is as given below,
response uri=[url value]
status=Success
statuscode=200
Error
Errors occur when the API Key is not valid or the parameter value does not exist in the application. In such cases, the output format is as shown below,
response uri=[url value]
status=Failure
statuscode=failurecode
Sample Input Form
Sample form for the operation 'AUTH' is given below,
<form method="POST" action="http(s)://<server-name>:<port-number>/api/xml/AUTH"> <input type="hidden" name="apikey" value="[SupportCenter API Key]"> <input type="text" name="username" value="[Login name]"> <input type="text" name="password" value="[Password]"> <input type="submit" name="submit" value="submit"> </form>
This operation displays all the business units to which the support rep belong.
URL Format
Parameters
The parameter to be passed via HTTP method is,
Output Response Format
The output response format for both xml and json consists of three parameters:-
Success
When the operation is successful, the output response format is as given below,
response uri=[url value]
status=Success
statuscode=200
Error
Errors occur when the API Key is not valid or the parameter value does not exist in the application. In such cases, the output format is as shown below,
response uri=[url value]
status=Failure
statuscode=failurecode
Sample Input Form
Sample form for the operation 'getRecentItems' is given below,
<form method="GET" action="http(s)://<server-name>:<port-number>/api/xml/getBUINFO"> <input type="hidden" name="apikey" value="[SupportCenter-API-Key]"> <input type="submit" name="submit" value="submit"> </form>
Through this operation, you can change the business unit of a user.
URL Format
Parameters
The parameter to be passed via HTTP method is,
Output Response Format
The output response format for both xml and json consists of three parameters:-
Success
When the operation is successful, the output response format is as given below,
response uri=[url value]
status=Success
statuscode=200
Error
Errors occur when the API Key is not valid or the parameter value does not exist in the application. In such cases, the output format is as shown below,
response uri=[url value]
status=Failure
statuscode=failurecode
Sample Input Form
Sample form for the operation 'changeBusinessUnit' is given below,
<form method="POST" action="http(s)://<server-name>:<port-number>/api/xml/changeBusinessUnit"> <input type="hidden" name="apikey" value="[SupportCenter-API-Key]"> <input type="text" name="businessUnit" value="[Business Unit]"> <input type="submit" name="submit" value="submit"> </form>
This operation displays the recent items viewed by the user from a business unit.
URL Format
Parameters
The parameter to be passed via HTTP method is,
NOTE: Please note that the recent request related items can only be viewed using this operation.
Output Response Format
The output response format for both xml and json consists of three parameters:-
Success
When the operation is successful, the output response format is as given below,
response uri=[url value]
status=Success
statuscode=200
Error
Errors occur when the API Key is not valid or the parameter value does not exist in the application. In such cases, the output format is as shown below,
response uri=[url value]
status=Failure
statuscode=failurecode
Sample Input Form
Sample form for the operation 'getRecentItems' is given below,
<form method="GET" action="http(s)://<server-name>:<port-number>/api/xml/getRecentItems"> <input type="hidden" name="apikey" value="[SupportCenter-API-Key]"> <input type="text" name="businessUnit" value="[Business Unit]"> <input type="submit" name="submit" value="submit"> </form> |