http_post not working while http_get is fine

Queries using http_get work:
  select content::json->>'allowed'
  from http_get('https://jsonplaceholder.typicode.com/todos/1');


but http_post fails:
  select content::json->>'allowed'
  from http_post('https://jsonplaceholder.typicode.com/todos/1',
    jsonb_build_object('test', 'test')
  );


with errors:
hint: "No function matches the given name and argument types. You might need to add explicit type casts."

message: "function http_post(unknown, jsonb) does not exist"


I don't understand why/how casting is failing, and why get works but not post?
Was this page helpful?