DevZero Logo
DevZero

Create Repo Manager Integration

Create a repo manager integration for a team

POST
/v2/teams/{team_id}/repo_manager_integrations
/v2/teams/{team_id}/repo_manager_integrations

Request Body

application/jsonRequired

create repo manager integration body

github_auth_codestring

github auth code for obtaining user access token

github_installation_idinteger

github install id identifying the installation

Format: "int64"

team_id
Required
string

team id of integration

user_id
Required
string

user id of integration

Header Parameters

Authorization
Required
string

Value: "Bearer <token>"; visit the "User Settings" page in the DevZero dashboard to generate a token

Path Parameters

team_id
Required
string

ID of team

curl -X POST "https://api.devzero.io/backend/v0/v2/teams/string/repo_manager_integrations" \
  -H "Authorization: string" \
  -H "Content-Type: application/json" \
  -d '{
    "github_auth_code": "string",
    "github_installation_id": 0,
    "team_id": "string",
    "user_id": "string"
  }'

created repo manager integration

{
  "config_url": "string",
  "github_install_url": "string",
  "github_target_name": "string",
  "github_target_url": "string",
  "id": "string",
  "oauth_auth_url": "string",
  "oauth_base_url": "string",
  "oauth_client_id": "string",
  "oauth_client_secret": "string",
  "oauth_git_clone_prefix": "string",
  "oauth_redirect_url": "string",
  "oauth_scopes": [
    "string"
  ],
  "oauth_token_url": "string",
  "repo_manager": "github",
  "team_id": "string"
}