How to Update a Connection in a Scenario Module Using the Make API

Hello,
I am working on a process using the Make API and would like some guidance on the steps involved. Here’s what I’ve done so far:

  1. Create webhook: I use the POST /hooks endpoint to create a new webhook.
  2. Clone scenario: I clone an existing scenario with the newly created webhook by calling POST /scenarios and passing the hookId to link it.
  3. Update scenario: I then move the cloned scenario to a specific folder using PATCH /scenarios/{scenarioId}.

Next steps I need help with:
4. Create connection: I assume I can do this via Create connection - POST/connections
5. Update scenario/module: I would like to know which endpoint I should use to update a connection in one of the modules of this scenario.

Can anyone provide guidance on the correct API endpoint or share an example of how to achieve this?