Put,post not working

WHILE i am updating the ticket using $request.invokeTemplate(), from requests.json i am getting this log,
:x: Ticket update failed: {“message”:“PUT method is not allowed. It should be one of these method(s): GET, POST”}
:x: Adding note failed: {“message”:“POST method is not allowed. It should be one of these method(s): GET, PATCH, PUT, DELETE”}