Team Repositories API
Automate repository connection management for teams
OpenAPI reference
Retrieve all repository connections configured for a specific team
JWT ID Token obtained from authentication endpoints.
Required Role: Admin
Include in the Authorization header as: Bearer {token}
The unique identifier of the team
123e4567-e89b-12d3-a456-426614174000Successfully retrieved team repositories
The URL or path to the repository
https://github.com/example/repoThe type of repository
gitPossible values: Authentication method (Git only)
httpsPossible values: Name of the credentials to use for authentication
github-pat-tokenTemplate pattern for generating links to view source code. Use {path} for file path and {line} for line number.
https://github.com/example/repo/blob/main/{path}#L{line}Unauthorized - Missing or invalid authentication token
Forbidden - User does not have required permissions (Admin role required)
Internal server error
Add a new repository connection to a team.
Git repositories can optionally include authentication_method and authentication_credentials_name. Perforce repositories require authentication_credentials_name.
JWT ID Token obtained from authentication endpoints.
Required Role: Admin
Include in the Authorization header as: Bearer {token}
The unique identifier of the team
123e4567-e89b-12d3-a456-426614174000The URL or path to the repository
https://github.com/example/repoThe type of repository
gitPossible values: Authentication method for Git repositories. Optional for Git, not applicable for Perforce.
httpsPossible values: Name of the credentials to use for authentication. Optional for Git, required for Perforce.
github-pat-tokenTemplate pattern for generating links to view source code. Use {path} for file path and {line} for line number. Optional for both Git and Perforce.
https://github.com/example/repo/blob/main/{path}#L{line}Repository connection successfully added
The URL or path to the repository
https://github.com/example/repoThe type of repository
gitPossible values: Authentication method (Git only)
httpsPossible values: Name of the credentials to use for authentication
github-pat-tokenTemplate pattern for generating links to view source code. Use {path} for file path and {line} for line number.
https://github.com/example/repo/blob/main/{path}#L{line}Repository connection successfully created
Bad request - Invalid input parameters
Unauthorized - Missing or invalid authentication token
Forbidden - User does not have required permissions (Admin role required)
Repository connection already exists
Internal server error
Update an existing repository connection. All fields are optional - only provided fields will be updated (partial update).
JWT ID Token obtained from authentication endpoints.
Required Role: Admin
Include in the Authorization header as: Bearer {token}
The unique identifier of the team
123e4567-e89b-12d3-a456-426614174000The full repository link/URL. Can contain slashes and special characters. This should match the repository_link used when adding the repository.
{"value":"https://github.com/example/repo","summary":"GitHub HTTPS URL"}All fields are optional for editing (partial update)
The type of repository
gitPossible values: Authentication method for Git repositories
sshPossible values: Name of the credentials to use for authentication
github-ssh-keyTemplate pattern for generating links to view source code. Use {path} for file path and {line} for line number.
https://github.com/example/repo/blob/develop/{path}#L{line}Repository connection successfully updated
The URL or path to the repository
https://github.com/example/repoThe type of repository
gitPossible values: Authentication method (Git only)
httpsPossible values: Name of the credentials to use for authentication
github-pat-tokenTemplate pattern for generating links to view source code. Use {path} for file path and {line} for line number.
https://github.com/example/repo/blob/main/{path}#L{line}Bad request - Invalid input parameters
Unauthorized - Missing or invalid authentication token
Forbidden - User does not have required permissions (Admin role required)
Repository connection not found
Internal server error
Remove a repository connection from a team
JWT ID Token obtained from authentication endpoints.
Required Role: Admin
Include in the Authorization header as: Bearer {token}
The unique identifier of the team
123e4567-e89b-12d3-a456-426614174000The full repository link/URL. Can contain slashes and special characters. This should match the repository_link used when adding the repository.
{"value":"https://github.com/example/repo","summary":"GitHub HTTPS URL"}Repository connection successfully deleted
Repository connection deleted successfullyRepository connection successfully deleted (no content)
Bad request - Invalid input parameters
Unauthorized - Missing or invalid authentication token
Forbidden - User does not have required permissions (Admin role required)
Repository connection not found
Internal server error
Field Descriptions
Common Fields
Git-Specific Fields
Perforce-Specific Fields
Status Values
Last updated
Was this helpful?
