Skip to main content
POST
/
api
/
metrics
/
developer
/
teams
/
delete
curl --request POST \
  --url https://api.codeant.ai/api/metrics/developer/teams/delete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "platform": "github",
  "org": "my-org",
  "team_id": "15884668-91e2-4def-9d20-b7cf4698117d"
}
'
{
  "status": "success",
  "message": "Team deleted successfully"
}

Authorizations

Authorization
string
header
required

Access token for the git provider (GitHub PAT, GitLab PAT, Bitbucket App Password, Azure DevOps PAT). Pass via Authorization: Bearer <token> header.

Body

application/json
platform
enum<string>
required

Version control platform

Available options:
github,
gitlab,
bitbucket,
azure_devops,
azuredevops
Example:

"github"

org
string
required

Organization, workspace, or group name on the platform

Example:

"my-org"

team_id
string<uuid>
required

ID of the team to delete

github_base_url
string
default:https://github.com

Base URL for GitHub (use for GitHub Enterprise Server)

Example:

"https://github.com"

gitlab_base_url
string
default:https://gitlab.com

Base URL for GitLab (use for self-hosted GitLab instances)

Example:

"https://gitlab.com"

azure_devops_base_url
string
default:https://dev.azure.com

Base URL for Azure DevOps (use for Azure DevOps Server)

Example:

"https://dev.azure.com"

bitbucket_base_url
string
default:https://api.bitbucket.org/2.0

Base URL for Bitbucket (use for Bitbucket Data Center/Server)

Example:

"https://api.bitbucket.org/2.0"

hard_delete
boolean
default:false

If true, permanently removes the team. If false (default), soft-deletes by marking inactive.

Response

Team deleted

status
enum<string>
Available options:
success,
error
message
string

Human-readable status message