DevZero Logo
DevZero

creates a oauth2 based repo manager integration for the team i.e bitbucket, gitlab

POST
/v2/teams/{team_id}/install_oauth2_repo_manager
/v2/teams/{team_id}/install_oauth2_repo_manager

Request Body

application/jsonRequired

create workspace body

oauth_auth_url
Required
string

auth url of the oauth based integration

oauth_base_url
Required
string

base url of the oauth based integration

oauth_client_id
Required
string

client id of the oauth based integration

oauth_client_secret
Required
string

client secret of the oauth based integration

oauth_redirect_urlstring

user auth redirect of the oauth based integration

oauth_token_url
Required
string

token url of the oauth based integration

repo_manager
Required
string

name of repo manager targeted in integration

Value in: "bitbucket" | "gitlab"

team_id
Required
string

team id of integration

Path Parameters

team_id
Required
string

ID of team

Header Parameters

Authorization
Required
string

sub claim pulled from JWT

curl -X POST "https://api.devzero.io/backend/v0/v2/teams/string/install_oauth2_repo_manager" \
  -H "Authorization: string" \
  -H "Content-Type: application/json" \
  -d '{
    "oauth_auth_url": "string",
    "oauth_base_url": "string",
    "oauth_client_id": "string",
    "oauth_client_secret": "string",
    "oauth_redirect_url": "string",
    "oauth_token_url": "string",
    "repo_manager": "bitbucket",
    "team_id": "string"
  }'

OK

{
  "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"
}