All URIs are relative to https://api.bitbucket.org/2.0
Method | HTTP request | Description |
---|---|---|
TeamsGet | Get /teams | |
TeamsUsernameFollowersGet | Get /teams/{username}/followers | |
TeamsUsernameFollowingGet | Get /teams/{username}/following | |
TeamsUsernameGet | Get /teams/{username} | |
TeamsUsernameHooksGet | Get /teams/{username}/hooks | |
TeamsUsernameHooksPost | Post /teams/{username}/hooks | |
TeamsUsernameHooksUidDelete | Delete /teams/{username}/hooks/{uid} | |
TeamsUsernameHooksUidGet | Get /teams/{username}/hooks/{uid} | |
TeamsUsernameHooksUidPut | Put /teams/{username}/hooks/{uid} | |
TeamsUsernameMembersGet | Get /teams/{username}/members | |
TeamsUsernameRepositoriesGet | Get /teams/{username}/repositories | |
UsersUsernameMembersGet | Get /users/{username}/members | |
UsersUsernameRepositoriesGet | Get /users/{username}/repositories |
PaginatedTeams TeamsGet(ctx, optional)
Returns all the teams that the authenticated user is associated with.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
optional | map[string]interface{} | optional parameters | nil if no parameters |
Optional parameters are passed through a map[string]interface{}.
Name | Type | Description | Notes |
---|---|---|---|
role | string | Filters the teams based on the authenticated user's role on each team. * member: returns a list of all the teams which the caller is a member of at least one team group or repository owned by the team * contributor: returns a list of teams which the caller has write access to at least one repository owned by the team * admin: returns a list teams which the caller has team administrator access |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaginatedUsers TeamsUsernameFollowersGet(ctx, username)
Returns the list of accounts that are following this team.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The team's username |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaginatedUsers TeamsUsernameFollowingGet(ctx, username)
Returns the list of accounts this team is following.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The team's username |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Team TeamsUsernameGet(ctx, username)
Gets the public information associated with a team. If the team's profile is private, location
, website
and created_on
elements are omitted.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | The team's username or UUID. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaginatedWebhookSubscriptions TeamsUsernameHooksGet(ctx, username)
Returns a paginated list of webhooks installed on this team.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WebhookSubscription TeamsUsernameHooksPost(ctx, username)
Creates a new webhook on the specified team. Team webhooks are fired for events from all repositories belonging to that team account. Note that only admins can install webhooks on teams.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TeamsUsernameHooksUidDelete(ctx, username, uid)
Deletes the specified webhook subscription from the given team account.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | ||
uid | string | The installed webhook's id |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WebhookSubscription TeamsUsernameHooksUidGet(ctx, username, uid)
Returns the webhook with the specified id installed on the given team account.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | ||
uid | string | The installed webhook's id. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WebhookSubscription TeamsUsernameHooksUidPut(ctx, username, uid)
Updates the specified webhook subscription. The following properties can be mutated: * description
* url
* active
* events
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string | ||
uid | string | The installed webhook's id |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
User TeamsUsernameMembersGet(ctx, username)
Returns all members of the specified team. Any member of any of the team's groups is considered a member of the team. This includes users in groups that may not actually have access to any of the team's repositories. This operation has been deprecated due to privacy changes. See the announcement for details.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ModelError TeamsUsernameRepositoriesGet(ctx, username)
All repositories owned by a user/team. This includes private repositories, but filtered down to the ones that the calling user has access to.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
User UsersUsernameMembersGet(ctx, username)
Returns all members of the specified team. Any member of any of the team's groups is considered a member of the team. This includes users in groups that may not actually have access to any of the team's repositories. This operation has been deprecated due to privacy changes. See the announcement for details.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ModelError UsersUsernameRepositoriesGet(ctx, username)
All repositories owned by a user/team. This includes private repositories, but filtered down to the ones that the calling user has access to.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
username | string |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]