To create and configure a remote repository, do the following:
Using the Platform UI
In the Administration module, select Repositories > Repositories.
Click Add Repositories > Remote Repository.
Select the package type.
Configure basic and advanced repository settings.
For detailed instructions, see:
Using the REST API
Use the Create Repository API:
PUT /api/repositories/{repoKey}
For more details, see Repository Configuration JSON.