Google Custom Search API generating a 405 error for a publish request

My website has a chatbot on it. This bot attempts to make a request to publish to Google's custom search tool. I already have a custom search page.

When I make the push request, I receive a 405 error. Does Google allow publishing requests on the custom search tool?

I make a Manychat post if it changes anything.