Error: self signed certificate in certificate chain (Postgres)

If you get this error:

Error: self signed certificate in certificate chain

Please change your SSL settings from:

{
  "name": "   ",
  "type": "postgres",
  "credentials": {
    "database": "  ",
    "host": "  ",
    "user": "  ",
    "password": "  ",
    "port": "  ",
    "ssl": "true"
  }
}

to:

 ssl: {
        rejectUnauthorized: false,
      }

And use the relevant instructions for CREATE or UPDATE from our Connections API documentation