Create Repository with Deploy Key
POST {{base_url}}/api/v3/accounts/{{account_id}}/projects/{{project_id}}/repositories/
Note: After creating / updating a dbt Cloud repository's SSH key, you will need to add the generated key text as a deploy key to the target repository. This gives dbt Cloud permissions to read / write in the repository.
You can read more in the docs