const mergeTickets = async (sourceTicketId: string, targetTicketId: string) => {
const orgId = await getOrgId(); //shortcut method for returning the orgID
const request = {
type: 'POST',
headers: { 'Content-Type': 'application/json', orgId: orgId },
connectionLinkName: 'myzohodeskconnnection',
responseType: 'json',
postBody: { ids: [targetTicketId] },
data: {}
};
const response = await ZOHODESK.request(request);
console.log('Merge Response', response);
return response;
};