Not enough permission error when trying to merge forked collection via curl request

My question: Using curl request, I am trying to merge my forked collection in one workspace to main collection in another workspace. I have IDs of both collections. I am admin in both collections too. While running curl command, I get error:

{“error”:{“name”:“forbiddenError”,“message”:“You do not have enough permissions to perform this action.”}}

I’ve already tried: With same permissions, I am able to merge in Postman. The issue is appearing at API level.