Can you help to create simple js code?

Hello! I’m beginer, and i need simple js code fo merge two deals with use API. I have two arrays. First is a “Deal_ID” and second is a “Merge_deal_ID”. Next time I will use this code like example.

Hey @modeb

You’ve seen the PUT merge already in the Reference page? https://developers.pipedrive.com/docs/api/v1/#!/Deals/put_deals_id_merge

Yes, I saw that. But I found only description for mandatory parameters and testing options. There’re no code examples, at least I didn’t found those.