Making a POST request to create custom rewards

I have updated my code, however I still get the same error

Also, could you advise on how do I deal with the changes I make to the code in the process of pinpointing the issue?
Should I edit my original post’s code or just leave it as it is?

Thank you for helping, highly appreciated!