Create text data ipfs file into folder hash by 1 API call

should I use put object patch or anything more efficient and secure way to do that ?