API to share a folder with another user

Hi everyone, could you give me an example to share a folder with a specific user via API? I can not understand it from the documentation because it is not a practical example. Thank you in advance :slight_smile: