creates a oauth2 based repo manager integration for the team i.e bitbucket, gitlab
Path Parameters
team_idstring
ID of team
Header Parameters
Authorizationstring
sub claim pulled from JWT
create workspace body
oauth_auth_urlstring
auth url of the oauth based integration
oauth_base_urlstring
base url of the oauth based integration
oauth_client_idstring
client id of the oauth based integration
oauth_client_secretstring
client secret of the oauth based integration
oauth_redirect_url?string
user auth redirect of the oauth based integration
oauth_token_urlstring
token url of the oauth based integration
repo_managerstring
name of repo manager targeted in integration
Value in
"bitbucket" | "gitlab"
team_idstring
team id of integration
Response Body
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_token_url": "string",
"repo_manager": "bitbucket",
"team_id": "string"
}'
{
"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"
}
{
"message": "string"
}
{
"message": "string"
}
{
"message": "string"
}
{
"message": "string"
}
{
"message": "string"
}
{
"message": "string"
}
{
"message": "string"
}
{
"message": "string"
}
{
"message": "string"
}