Skip to main content

Register a repository via the REST API

Register an existing repository programmatically with the platform's REST API instead of the Manage Repositories page.

Prerequisites

  • A platform with the API license module active.
  • A user with the server-role permission to access the REST API and the repository-role permission to create and manage repositories — see permissions reference.

Steps

  1. Open the REST API documentation in your platform and go to Administration → Repository Management → Register Repository.

  2. Use the endpoint POST /api/repositories/register.

  3. Enter the user's credentials for authentication.

  4. Send the request body, adjusting the fields for your database:

    {
    "databaseName": "YOUR_REPOSITORY_DATABASE",
    "databasePassword": "YOUR_DB_PASSWORD",
    "databaseUsername": "YOUR_DB_USER",
    "hostname": "YOUR_DB_HOSTNAME",
    "port": 1433,
    "databaseType": "MSSQL",
    "tablePrefix": ""
    }
info

To register a repository that's currently registered elsewhere, find its database details in Administration → Repositories: select the repository's name and open the Database tab. If you don't have the connection information, your IT team can provide it.

The Database tab of a repository showing its connection details.