How can I link a contact to a opportunity via REST API?

I'm trying to find some documentation on how to do this. I will start trying to use this endpoint now, but its not clear to me if it will work:

<module>/:record/link/:link_name/:remote_id POST

But I do not know if it will work.

Thanks for some help.