I'm working on a react project:
I'm trying to get conversation history from specific date ranges. But let's say someone else wants to look for another date. How would I create a function that'll update the interval for the person is trying to search for.
const getJobId = async () => {
let body = {
interval: "2021-10-18T04:00:00.000Z/2021-10-31T04:00:00.000Z",
order: "asc",
orderBy: "conversationStart",
paging: {
pageSize: 4,
pageNumber: 1,
},
}; // Object | query
return (await apiInstance.postAnalyticsConversationsDetailsJobs(body))
.jobId;
};