It would help if you posted your code. No one can help you if you don’t at least share some idea of how you are trying to add a metafield. Secondly, when you make a call and it fails, there is almost always a reason in the response error message. Have you examined your responses? What do they contain?