Reallocate Data

Author: Salman Pathan 234 views

Purpose:

This function is used to reallocate data or tasks to a particular user.

Use Case:

Reallocate data when a user is absent or has left organization and will not be able to handle scheduled calls.
In such cases, data needs to be reallocated to other Jodo users to meet the scheduled call goal.
Option to reallocate data should be added to CRM / Business application.

User Input Parameters:

NodeM/OData type sizeValueDescription
methodMTextReallocatedataUnique Command for JSON Request. (This method value cannot be changed)
apikeyMTexttest_orgUnique key assigned to an organisation. (API key will change according to client organisation)
servicekeyMTextVoiceProcessUnique key assigned to the process. (Service key will change according to client process)
contactnumberMText7507959484User contact number. (e.g. Phone number or Mobile number)
loginMTextTanmay.k@dev1Reassign login (needs email ID)
calldatetimeOText2018-11-10 09:00:00Call Date and Time
customercodeOIntegerUnique customer code
reqdatetimeMText2018-11-12 14:00:05Date and Time of the request. (Date format: YYYY-MM-DD hh:mm:ss)

Output Parameters:

NodeValueDescription
methodreallocatedataCommand for JSON Response
resdatetime2018-11-12 14:00:05Date and Time of the response. (Date format: YYYY-MM-DD hh:mm:ss)
status001Refer the status parameter table
statusdescsuccessStatus parameter description

Return Value:

This API returns in one format I.e., JSON format.

Reallocate data JSON Request

				
					 {
"method":"reallocatedata",
"apikey":"test_org",
"servicekey":"VoiceProcess",
"contactnumber":"7507959484",
"login":"tanmay.k",
"calldatetime":"2018-11-10 09:00:00",
"customercode":0,
"reqdatetime":"2018-11-12 14:00:05"
}
				
			

Reallocate data JSON Response

				
					{
"method":"reallocatedata",
"statuscode":"001",
"resdatetime":"2018-11-12 14:00:05",
"statusdesc":"Success"
}
				
			

Reallocate data JSON Fail Response

				
					{
"method":”reallocatedata”,
"revisionno":"1",
"status":5,
"statusdesc":"fail",
"resdatetime":"2018-11-12 14:00:05"
}
				
			

Status Code Information

StatusStatus Description
01Success
13Tenant Database Not found
38Error while processing
70Contact Number not found
71Contact Number is blank
72Login not found
73Login is blank