bitbucket
Module bitbucket
API
Definitions
ballerinax/bitbucket Ballerina library
Overview
The Bitbucket connector lets Ballerina integrations work with Bitbucket Cloud, Atlassian's Git repository hosting and collaboration service, through version 2.0 of its REST API. It covers the API's full operation surface, including repositories, branches and tags, commits, pull requests, pipelines, snippets, projects, workspaces and permissions, so that source-control and CI/CD workflows can be automated from a Ballerina program.
Key features
- Create, update and delete repositories, branches, tags and branch restriction rules.
- Open, review, approve and merge pull requests, and read their activity and comments.
- Browse commits, diffs, source files and commit statuses.
- Manage Bitbucket Pipelines, including variables, schedules, runners and caches.
- Administer workspaces, projects, members and permissions.
- Share code with snippets and manage SSH and GPG keys.
Setup guide
To use the connector you need a Bitbucket Cloud account and one of the supported credentials.
- Sign in to Bitbucket Cloud and open the workspace, project or repository you want to automate.
- Create an access token. Open the repository (or workspace) Settings, choose Access tokens and create a token with the scopes your integration needs, such as repository read and write, and pull request read and write.
- Copy the token. It is shown only once.
- Alternatively, use basic authentication with your Atlassian account email and an API token created under Atlassian account settings > Security > API tokens, or an OAuth 2.0 consumer created under Workspace settings > OAuth consumers.
- Keep the credentials in a
Config.tomlfile next to your program and never commit them to source control.
Quickstart
-
Import the connector.
import ballerinax/bitbucket; -
Add the credentials to
Config.toml.accessToken = "<your-access-token>" -
Create the client.
configurable string accessToken = ?; bitbucket:Client bitbucketClient = check new ({auth: {token: accessToken}}); -
Call an operation, for example fetch the authenticated user, and run the program with
bal run.public function main() returns error? { bitbucket:Account _ = check bitbucketClient->getCurrentUser(); }
Examples
The Bitbucket connector provides practical examples illustrating usage in various scenarios. Explore these examples, covering the following use cases:
- pull_request_review_flow - Review the open pull requests of a repository, then approve and merge one.
- release_tag_publishing - Tag the latest commit of a repository as a release and list the repository tags.
Build from the source
Setting up the prerequisites
-
Download and install Java SE Development Kit (JDK) version 17. You can download it from either of the following sources:
Note: After installation, remember to set the
JAVA_HOMEenvironment variable to the directory where JDK was installed. -
Download and install Ballerina Swan Lake.
-
Download and install Docker.
Note: Ensure that the Docker daemon is running before executing any tests.
-
Export Github Personal access token with read package permissions as follows,
export packageUser=<Username> export packagePAT=<Personal access token>
Build options
Execute the commands below to build from the source.
-
To build the package:
./gradlew clean build -
To run the tests:
./gradlew clean test -
To build the without the tests:
./gradlew clean build -x test -
To run tests against different environments:
./gradlew clean test -Pgroups=<Comma separated groups/test cases> -
To debug the package with a remote debugger:
./gradlew clean build -Pdebug=<port> -
To debug with the Ballerina language:
./gradlew clean build -PbalJavaDebug=<port> -
Publish the generated artifacts to the local Ballerina Central repository:
./gradlew clean build -PpublishToLocalCentral=true -
Publish the generated artifacts to the Ballerina Central repository:
./gradlew clean build -PpublishToCentral=true
Contribute to Ballerina
As an open-source project, Ballerina welcomes contributions from the community.
For more information, go to the contribution guidelines.
Code of conduct
All the contributors are encouraged to read the Ballerina Code of Conduct.
Useful links
- For more information go to the
bitbucketpackage. - For example demonstrations of the usage, go to Ballerina By Examples.
- Chat live with us via our Discord server.
- Post all technical questions on Stack Overflow with the #ballerina tag.
Clients
bitbucket: Client
Code against the Bitbucket API to automate simple tasks, embed Bitbucket data into your own site, build mobile or desktop apps, or even add custom UI add-ons into Bitbucket itself using the Connect framework.
Constructor
Gets invoked to initialize the connector.
init (ConnectionConfig config, string serviceUrl)- config ConnectionConfig - The configurations to be used when initializing the
connector
- serviceUrl string "https://api.bitbucket.org/2.0" - URL of the target service
updateInstalledApp
Update an installed app
Return Type
- error? - Request has succeeded. The installation has been updated to the new descriptor
deleteApp
Delete an app
Return Type
- error? - Request has succeeded. The application has been deleted for the user
getClientKeyConnectAddon
Get the client key of a Connect addon
Parameters
- addonKey string - The Connect addon key as defined in an application descriptor
Return Type
- error? - The client key of the Connect addon linked to the Forge app installation where the request was made
getWebhookResource
function getWebhookResource(map<string|string[]> headers) returns SubjectTypes|errorGet a webhook resource
Return Type
- SubjectTypes|error - A mapping of resource/subject types pointing to their individual event types
listSubscribableWebhookTypes
function listSubscribableWebhookTypes("repository"|"workspace" subjectType, map<string|string[]> headers) returns PaginatedHookEvents|errorList subscribable webhook types
Parameters
- subjectType "repository"|"workspace" - A resource or subject type
Return Type
- PaginatedHookEvents|error - A paginated list of webhook types available to subscribe on
listRepositoriesInWorkspace
function listRepositoriesInWorkspace(string workspace, map<string|string[]> headers, *ListRepositoriesInWorkspaceQueries queries) returns PaginatedRepositories|errorList repositories in a workspace
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- queries *ListRepositoriesInWorkspaceQueries - Queries to be sent with the request
Return Type
- PaginatedRepositories|error - The repositories owned by the specified account
getRepository
function getRepository(string repoSlug, string workspace, map<string|string[]> headers) returns Repository|errorGet a repository
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- Repository|error - The repository object
updateRepository
function updateRepository(string repoSlug, string workspace, Repository payload, map<string|string[]> headers) returns Repository|errorUpdate a repository
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- payload Repository - The repository that is to be updated
Return Type
- Repository|error - The existing repository has been updated
createRepository
function createRepository(string repoSlug, string workspace, Repository payload, map<string|string[]> headers) returns Repository|errorCreate a repository
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- payload Repository - The repository that is to be created. Note that most object elements are optional. Elements "owner" and "full_name" are ignored as the URL implies them
Return Type
- Repository|error - The newly created repository
deleteRepository
function deleteRepository(string repoSlug, string workspace, map<string|string[]> headers, *DeleteRepositoryQueries queries) returns error?Delete a repository
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- queries *DeleteRepositoryQueries - Queries to be sent with the request
Return Type
- error? - Indicates successful deletion
listBranchRestrictions
function listBranchRestrictions(string repoSlug, string workspace, map<string|string[]> headers, *ListBranchRestrictionsQueries queries) returns PaginatedBranchRestrictions|errorList branch restrictions
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- queries *ListBranchRestrictionsQueries - Queries to be sent with the request
Return Type
- PaginatedBranchRestrictions|error - A paginated list of branch restrictions
createBranchRestrictionRule
function createBranchRestrictionRule(string repoSlug, string workspace, BranchRestriction payload, map<string|string[]> headers) returns BranchRestriction|errorCreate a branch restriction rule
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- payload BranchRestriction - The new rule
Return Type
- BranchRestriction|error - A paginated list of branch restrictions
getBranchRestrictionRule
function getBranchRestrictionRule(string id, string repoSlug, string workspace, map<string|string[]> headers) returns BranchRestriction|errorGet a branch restriction rule
Parameters
- id string - The restriction rule's id
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- BranchRestriction|error - The branch restriction rule
updateBranchRestrictionRule
function updateBranchRestrictionRule(string id, string repoSlug, string workspace, BranchRestriction payload, map<string|string[]> headers) returns BranchRestriction|errorUpdate a branch restriction rule
Parameters
- id string - The restriction rule's id
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- payload BranchRestriction - The new version of the existing rule
Return Type
- BranchRestriction|error - The updated branch restriction rule
deleteBranchRestrictionRule
function deleteBranchRestrictionRule(string id, string repoSlug, string workspace, map<string|string[]> headers) returns error?Delete a branch restriction rule
Parameters
- id string - The restriction rule's id
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - Success
getBranchingModelForRepository
function getBranchingModelForRepository(string repoSlug, string workspace, map<string|string[]> headers) returns BranchingModel|errorGet the branching model for a repository
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- BranchingModel|error - The branching model object
getBranchingModelConfigForRepository
function getBranchingModelConfigForRepository(string repoSlug, string workspace, map<string|string[]> headers) returns BranchingModelSettings|errorGet the branching model config for a repository
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- BranchingModelSettings|error - The branching model configuration
updateRepoBranchingModelConfig
function updateRepoBranchingModelConfig(string repoSlug, string workspace, map<string|string[]> headers) returns BranchingModelSettings|errorUpdate the branching model config for a repository
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- BranchingModelSettings|error - The updated branching model configuration
getCommit
function getCommit(string 'commit, string repoSlug, string workspace, map<string|string[]> headers) returns Commit|errorGet a commit
Parameters
- 'commit string - The commit's SHA1
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
approveCommit
function approveCommit(string 'commit, string repoSlug, string workspace, map<string|string[]> headers) returns Participant|errorApprove a commit
Parameters
- 'commit string - The commit's SHA1
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- Participant|error - The
participantobject recording that the authenticated user approved the commit
unapproveCommit
function unapproveCommit(string 'commit, string repoSlug, string workspace, map<string|string[]> headers) returns error?Unapprove a commit
Parameters
- 'commit string - The commit's SHA1
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - An empty response indicating the authenticated user's approval has been withdrawn
listCommitComments
function listCommitComments(string 'commit, string repoSlug, string workspace, map<string|string[]> headers, *ListCommitCommentsQueries queries) returns PaginatedCommitComments|errorList a commit's comments
Parameters
- 'commit string - The commit's SHA1
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- queries *ListCommitCommentsQueries - Queries to be sent with the request
Return Type
- PaginatedCommitComments|error - A paginated list of commit comments
createCommentForCommit
function createCommentForCommit(string 'commit, string repoSlug, string workspace, CommitComment payload, map<string|string[]> headers) returns error?Create comment for a commit
Parameters
- 'commit string - The commit's SHA1
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- payload CommitComment - The specified comment
Return Type
- error? - The newly created comment
getCommitComment
function getCommitComment(int commentId, string 'commit, string repoSlug, string workspace, map<string|string[]> headers) returns CommitComment|errorGet a commit comment
Parameters
- commentId int - The id of the comment
- 'commit string - The commit's SHA1
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- CommitComment|error - The commit comment
updateCommitComment
function updateCommitComment(int commentId, string 'commit, string repoSlug, string workspace, CommitComment payload, map<string|string[]> headers) returns error?Update a commit comment
Parameters
- commentId int - The id of the comment
- 'commit string - The commit's SHA1
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- payload CommitComment - The updated comment
Return Type
- error? - The newly updated comment
deleteCommitComment
function deleteCommitComment(int commentId, string 'commit, string repoSlug, string workspace, map<string|string[]> headers) returns error?Delete a commit comment
Parameters
- commentId int - The id of the comment
- 'commit string - The commit's SHA1
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - Indicates the comment was deleted by this action or a previous delete
getCommitApplicationProperty
function getCommitApplicationProperty(string workspace, string repoSlug, string 'commit, string appKey, string propertyName, map<string|string[]> headers) returns ApplicationProperty|errorGet a commit application property
Parameters
- workspace string - The repository container; either the workspace slug or the UUID in curly braces
- repoSlug string - The repository
- 'commit string - The commit
- appKey string - The key of the Connect app
- propertyName string - The name of the property
Return Type
- ApplicationProperty|error - The value of the property
Deprecated
updateCommitApplicationProperty
function updateCommitApplicationProperty(string workspace, string repoSlug, string 'commit, string appKey, string propertyName, ApplicationProperty payload, map<string|string[]> headers) returns error?Update a commit application property
Parameters
- workspace string - The repository container; either the workspace slug or the UUID in curly braces
- repoSlug string - The repository
- 'commit string - The commit
- appKey string - The key of the Connect app
- propertyName string - The name of the property
- payload ApplicationProperty - The application property to create or update
Return Type
- error? - An empty response
Deprecated
deleteCommitApplicationProperty
function deleteCommitApplicationProperty(string workspace, string repoSlug, string 'commit, string appKey, string propertyName, map<string|string[]> headers) returns error?Delete a commit application property
Parameters
- workspace string - The repository container; either the workspace slug or the UUID in curly braces
- repoSlug string - The repository
- 'commit string - The commit
- appKey string - The key of the Connect app
- propertyName string - The name of the property
Return Type
- error? - An empty response
Deprecated
listPullRequestsThatContainCommit
function listPullRequestsThatContainCommit(string workspace, string repoSlug, string 'commit, map<string|string[]> headers, *ListPullRequestsThatContainCommitQueries queries) returns PaginatedPullrequests|errorList pull requests that contain a commit
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces
- repoSlug string - The repository; either the UUID in curly braces, or the slug
- 'commit string - The SHA1 of the commit
- queries *ListPullRequestsThatContainCommitQueries - Queries to be sent with the request
Return Type
- PaginatedPullrequests|error - The paginated list of pull requests
listReports
function listReports(string workspace, string repoSlug, string 'commit, map<string|string[]> headers) returns PaginatedReports|errorList reports
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- 'commit string - The commit for which to retrieve reports
Return Type
- PaginatedReports|error - OK
getReport
function getReport(string workspace, string repoSlug, string 'commit, string reportId, map<string|string[]> headers) returns Report|errorGet a report
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- 'commit string - The commit the report belongs to
- reportId string - Either the uuid or external-id of the report
createOrUpdateReport
function createOrUpdateReport(string workspace, string repoSlug, string 'commit, string reportId, Report payload, map<string|string[]> headers) returns Report|errorCreate or update a report
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- 'commit string - The commit the report belongs to
- reportId string - Either the uuid or external-id of the report
- payload Report - The report to create or update
deleteReport
function deleteReport(string workspace, string repoSlug, string 'commit, string reportId, map<string|string[]> headers) returns error?Delete a report
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- 'commit string - The commit the report belongs to
- reportId string - Either the uuid or external-id of the report
Return Type
- error? - No content
listAnnotations
function listAnnotations(string workspace, string repoSlug, string 'commit, string reportId, map<string|string[]> headers) returns PaginatedAnnotations|errorList annotations
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- 'commit string - The commit for which to retrieve reports
- reportId string - Uuid or external-if of the report for which to get annotations for
Return Type
bulkCreateOrUpdateAnnotations
function bulkCreateOrUpdateAnnotations(string workspace, string repoSlug, string 'commit, string reportId, ReportAnnotation[] payload, map<string|string[]> headers) returns ReportAnnotation[]|errorBulk create or update annotations
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- 'commit string - The commit for which to retrieve reports
- reportId string - Uuid or external-if of the report for which to get annotations for
- payload ReportAnnotation[] - The annotations to create or update
Return Type
- ReportAnnotation[]|error - OK
getAnnotation
function getAnnotation(string workspace, string repoSlug, string 'commit, string reportId, string annotationId, map<string|string[]> headers) returns ReportAnnotation|errorGet an annotation
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- 'commit string - The commit the report belongs to
- reportId string - Either the uuid or external-id of the report
- annotationId string - Either the uuid or external-id of the annotation
Return Type
- ReportAnnotation|error - OK
createOrUpdateAnnotation
function createOrUpdateAnnotation(string workspace, string repoSlug, string 'commit, string reportId, string annotationId, ReportAnnotation payload, map<string|string[]> headers) returns ReportAnnotation|errorCreate or update an annotation
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- 'commit string - The commit the report belongs to
- reportId string - Either the uuid or external-id of the report
- annotationId string - Either the uuid or external-id of the annotation
- payload ReportAnnotation - The annotation to create or update
Return Type
- ReportAnnotation|error - OK
deleteAnnotation
function deleteAnnotation(string workspace, string repoSlug, string 'commit, string reportId, string annotationId, map<string|string[]> headers) returns error?Delete an annotation
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- 'commit string - The commit the annotation belongs to
- reportId string - Either the uuid or external-id of the annotation
- annotationId string - Either the uuid or external-id of the annotation
Return Type
- error? - No content
listCommitStatusesForCommit
function listCommitStatusesForCommit(string 'commit, string repoSlug, string workspace, map<string|string[]> headers, *ListCommitStatusesForCommitQueries queries) returns PaginatedCommitstatuses|errorList commit statuses for a commit
Parameters
- 'commit string - The commit's SHA1
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- queries *ListCommitStatusesForCommitQueries - Queries to be sent with the request
Return Type
- PaginatedCommitstatuses|error - A paginated list of all commit statuses for this commit
createBuildStatusForCommit
function createBuildStatusForCommit(string 'commit, string repoSlug, string workspace, Commitstatus payload, map<string|string[]> headers) returns Commitstatus|errorCreate a build status for a commit
Parameters
- 'commit string - The commit's SHA1
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- payload Commitstatus - The new commit status object
Return Type
- Commitstatus|error - The newly created build status object
getBuildStatusForCommit
function getBuildStatusForCommit(string 'commit, string 'key, string repoSlug, string workspace, map<string|string[]> headers) returns Commitstatus|errorGet a build status for a commit
Parameters
- 'commit string - The commit's SHA1
- 'key string - The build status' unique key
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- Commitstatus|error - The build status object with the specified key
updateBuildStatusForCommit
function updateBuildStatusForCommit(string 'commit, string 'key, string repoSlug, string workspace, Commitstatus payload, map<string|string[]> headers) returns Commitstatus|errorUpdate a build status for a commit
Parameters
- 'commit string - The commit's SHA1
- 'key string - The build status' unique key
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- payload Commitstatus - The updated build status object
Return Type
- Commitstatus|error - The updated build status object
listCommits
function listCommits(string repoSlug, string workspace, map<string|string[]> headers) returns PaginatedChangeset|errorList commits
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- PaginatedChangeset|error - A paginated list of commits
listCommitsWithIncludeExclude
function listCommitsWithIncludeExclude(string repoSlug, string workspace, map<string|string[]> headers) returns PaginatedChangeset|errorList commits with include/exclude
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- PaginatedChangeset|error - A paginated list of commits
listCommitsForRevision
function listCommitsForRevision(string repoSlug, string revision, string workspace, map<string|string[]> headers) returns PaginatedChangeset|errorList commits for revision
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- revision string - A commit SHA1 or ref name
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- PaginatedChangeset|error - A paginated list of commits
listCommitsWithFilters
function listCommitsWithFilters(string repoSlug, string revision, string workspace, map<string|string[]> headers) returns PaginatedChangeset|errorList commits for revision using include/exclude
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- revision string - A commit SHA1 or ref name
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- PaginatedChangeset|error - A paginated list of commits
listDefaultReviewers
function listDefaultReviewers(string repoSlug, string workspace, map<string|string[]> headers) returns PaginatedAccounts|errorList default reviewers
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- PaginatedAccounts|error - The paginated list of default reviewers
getRepoDefaultReviewer
function getRepoDefaultReviewer(string repoSlug, string targetUsername, string workspace, map<string|string[]> headers) returns Account|errorGet a repository default reviewer
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- targetUsername string - This can either be the username or the UUID of the default reviewer,
surrounded by curly-braces, for example:
{account UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
addUserToDefaultReviewers
function addUserToDefaultReviewers(string repoSlug, string targetUsername, string workspace, map<string|string[]> headers) returns Account|errorAdd a user to the default reviewers
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- targetUsername string - This can either be the username or the UUID of the default reviewer,
surrounded by curly-braces, for example:
{account UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
removeUserFromDefaultReviewers
function removeUserFromDefaultReviewers(string repoSlug, string targetUsername, string workspace, map<string|string[]> headers) returns error?Remove a user from the default reviewers
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- targetUsername string - This can either be the username or the UUID of the default reviewer,
surrounded by curly-braces, for example:
{account UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - The specified user successfully removed from the default reviewers
listRepositoryDeployKeys
function listRepositoryDeployKeys(string repoSlug, string workspace, map<string|string[]> headers) returns PaginatedDeployKeys|errorList repository deploy keys
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- PaginatedDeployKeys|error - Deploy keys matching the repository
addRepositoryDeployKey
function addRepositoryDeployKey(string repoSlug, string workspace, map<string|string[]> headers) returns DeployKey|errorAdd a repository deploy key
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
getRepositoryDeployKey
function getRepositoryDeployKey(string keyId, string repoSlug, string workspace, map<string|string[]> headers) returns DeployKey|errorGet a repository deploy key
Parameters
- keyId string - The key ID matching the deploy key
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
updateRepositoryDeployKey
function updateRepositoryDeployKey(string keyId, string repoSlug, string workspace, map<string|string[]> headers) returns DeployKey|errorUpdate a repository deploy key
Parameters
- keyId string - The key ID matching the deploy key
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
deleteRepositoryDeployKey
function deleteRepositoryDeployKey(string keyId, string repoSlug, string workspace, map<string|string[]> headers) returns error?Delete a repository deploy key
Parameters
- keyId string - The key ID matching the deploy key
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - The key has been deleted
listDeployments
function listDeployments(string workspace, string repoSlug, map<string|string[]> headers) returns PaginatedDeployments|errorList deployments
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
Return Type
- PaginatedDeployments|error - The matching deployments
getDeployment
function getDeployment(string workspace, string repoSlug, string deploymentUuid, map<string|string[]> headers) returns Deployment|errorGet a deployment
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- deploymentUuid string - The deployment UUID
Return Type
- Deployment|error - The deployment
listVariablesForEnvironment
function listVariablesForEnvironment(string workspace, string repoSlug, string environmentUuid, map<string|string[]> headers) returns PaginatedDeploymentVariable|errorList variables for an environment
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- environmentUuid string - The environment
Return Type
- PaginatedDeploymentVariable|error - The retrieved deployment variables
createVariableForEnvironment
function createVariableForEnvironment(string workspace, string repoSlug, string environmentUuid, DeploymentVariable payload, map<string|string[]> headers) returns DeploymentVariable|errorCreate a variable for an environment
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- environmentUuid string - The environment
- payload DeploymentVariable - The variable to create
Return Type
- DeploymentVariable|error - The variable was created
updateVariableForEnvironment
function updateVariableForEnvironment(string workspace, string repoSlug, string environmentUuid, string variableUuid, DeploymentVariable payload, map<string|string[]> headers) returns DeploymentVariable|errorUpdate a variable for an environment
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- environmentUuid string - The environment
- variableUuid string - The UUID of the variable to update
- payload DeploymentVariable - The updated deployment variable
Return Type
- DeploymentVariable|error - The deployment variable was updated
deleteVariableForEnvironment
function deleteVariableForEnvironment(string workspace, string repoSlug, string environmentUuid, string variableUuid, map<string|string[]> headers) returns error?Delete a variable for an environment
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- environmentUuid string - The environment
- variableUuid string - The UUID of the variable to delete
Return Type
- error? - The variable was deleted
compareTwoCommits
function compareTwoCommits(string repoSlug, string spec, string workspace, map<string|string[]> headers, *CompareTwoCommitsQueries queries) returns error?Compare two commits
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- spec string - A commit SHA (e.g.
3a8b42) or a commit range using double dot notation (e.g.3a8b42..9ff173)
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- queries *CompareTwoCommitsQueries - Queries to be sent with the request
Return Type
- error? - The raw diff
compareTwoCommitDiffStats
function compareTwoCommitDiffStats(string repoSlug, string spec, string workspace, map<string|string[]> headers, *CompareTwoCommitDiffStatsQueries queries) returns PaginatedDiffstats|errorCompare two commit diff stats
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- spec string - A commit SHA (e.g.
3a8b42) or a commit range using double dot notation (e.g.3a8b42..9ff173)
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- queries *CompareTwoCommitDiffStatsQueries - Queries to be sent with the request
Return Type
- PaginatedDiffstats|error - The diff stats
listDownloadArtifacts
function listDownloadArtifacts(string repoSlug, string workspace, map<string|string[]> headers) returns error?List download artifacts
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - Returns a paginated list of the downloads associated with the repository
uploadDownloadArtifact
function uploadDownloadArtifact(string repoSlug, string workspace, map<string|string[]> headers) returns error?Upload a download artifact
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - The artifact was uploaded sucessfully
getDownloadArtifactLink
function getDownloadArtifactLink(string filename, string repoSlug, string workspace, map<string|string[]> headers) returns error?Get a download artifact link
Parameters
- filename string - Name of the file
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - Redirects to the url of the specified download artifact
deleteDownloadArtifact
function deleteDownloadArtifact(string filename, string repoSlug, string workspace, map<string|string[]> headers) returns error?Delete a download artifact
Parameters
- filename string - Name of the file
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - The specified download artifact was deleted
getEffectiveBranchingModel
function getEffectiveBranchingModel(string repoSlug, string workspace, map<string|string[]> headers) returns EffectiveRepoBranchingModel|errorGet the effective, or currently applied, branching model for a repository
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- EffectiveRepoBranchingModel|error - The effective branching model object
listEffectiveDefaultReviewers
function listEffectiveDefaultReviewers(string repoSlug, string workspace, map<string|string[]> headers) returns PaginatedDefaultReviewerAndType|errorList effective default reviewers
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- PaginatedDefaultReviewerAndType|error - The paginated list of effective default reviewers
listEnvironments
function listEnvironments(string workspace, string repoSlug, map<string|string[]> headers) returns PaginatedEnvironments|errorList environments
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
Return Type
- PaginatedEnvironments|error - The matching environments
createEnvironment
function createEnvironment(string workspace, string repoSlug, DeploymentEnvironment payload, map<string|string[]> headers) returns DeploymentEnvironment|errorCreate an environment
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- payload DeploymentEnvironment - The environment to create
Return Type
- DeploymentEnvironment|error - The environment was created
getEnvironment
function getEnvironment(string workspace, string repoSlug, string environmentUuid, map<string|string[]> headers) returns DeploymentEnvironment|errorGet an environment
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- environmentUuid string - The environment UUID
Return Type
- DeploymentEnvironment|error - The environment
deleteEnvironment
function deleteEnvironment(string workspace, string repoSlug, string environmentUuid, map<string|string[]> headers) returns error?Delete an environment
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- environmentUuid string - The environment UUID
Return Type
- error? - The environment was deleted
updateEnvironment
function updateEnvironment(string workspace, string repoSlug, string environmentUuid, map<string|string[]> headers) returns error?Update an environment
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- environmentUuid string - The environment UUID
Return Type
- error? - The environment update request was accepted
getFileConflictsForCommitSpec
function getFileConflictsForCommitSpec(string repoSlug, string spec, string workspace, map<string|string[]> headers) returns PaginatedFileConflicts|errorGet file conflicts for a commit spec
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- spec string - A commit SHA (e.g.
3a8b42) or a commit range using double dot notation (e.g.3a8b42..9ff173)
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- PaginatedFileConflicts|error - A paginated list of file conflicts
listCommitsThatModifiedFile
function listCommitsThatModifiedFile(string 'commit, string path, string repoSlug, string workspace, map<string|string[]> headers, *ListCommitsThatModifiedFileQueries queries) returns PaginatedFiles|errorList commits that modified a file
Parameters
- 'commit string - The commit's SHA1
- path string - Path to the file
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- queries *ListCommitsThatModifiedFileQueries - Queries to be sent with the request
Return Type
- PaginatedFiles|error - A paginated list of commits that modified the specified file
listRepositoryForks
function listRepositoryForks(string repoSlug, string workspace, map<string|string[]> headers, *ListRepositoryForksQueries queries) returns PaginatedRepositories|errorList repository forks
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- queries *ListRepositoryForksQueries - Queries to be sent with the request
Return Type
- PaginatedRepositories|error - All forks
forkRepository
function forkRepository(string repoSlug, string workspace, Repository payload, map<string|string[]> headers) returns Repository|errorFork a repository
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- payload Repository - A repository object. This can be left blank
Return Type
- Repository|error - The newly created fork
listWebhooksForRepository
function listWebhooksForRepository(string repoSlug, string workspace, map<string|string[]> headers) returns PaginatedWebhookSubscriptions|errorList webhooks for a repository
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- PaginatedWebhookSubscriptions|error - The paginated list of installed webhooks
createWebhookForRepository
function createWebhookForRepository(string repoSlug, string workspace, map<string|string[]> headers) returns WebhookSubscription|errorCreate a webhook for a repository
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- WebhookSubscription|error - If the webhook was registered successfully
getWebhookForRepository
function getWebhookForRepository(string repoSlug, string uid, string workspace, map<string|string[]> headers) returns WebhookSubscription|errorGet a webhook for a repository
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- uid string - Installed webhook's ID
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- WebhookSubscription|error - The webhook subscription object
updateWebhookForRepository
function updateWebhookForRepository(string repoSlug, string uid, string workspace, map<string|string[]> headers) returns WebhookSubscription|errorUpdate a webhook for a repository
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- uid string - Installed webhook's ID
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- WebhookSubscription|error - The webhook subscription object
deleteWebhookForRepository
function deleteWebhookForRepository(string repoSlug, string uid, string workspace, map<string|string[]> headers) returns error?Delete a webhook for a repository
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- uid string - Installed webhook's ID
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - When the webhook was deleted successfully
getCommonAncestorBetweenTwoCommits
function getCommonAncestorBetweenTwoCommits(string repoSlug, string revspec, string workspace, map<string|string[]> headers) returns Commit|errorGet the common ancestor between two commits
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- revspec string - A commit range using double dot notation (e.g.
3a8b42..9ff173)
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
getRepoInheritanceState
function getRepoInheritanceState(string repoSlug, string workspace, map<string|string[]> headers) returns RepositoryInheritanceState|errorRetrieve the inheritance state for repository settings
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- RepositoryInheritanceState|error - The repository setting inheritance state
setRepoInheritanceState
function setRepoInheritanceState(string repoSlug, string workspace, map<string|string[]> headers) returns error?Set the inheritance state for repository settings
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - The repository setting inheritance state was set and no content returned
getPatchForTwoCommits
function getPatchForTwoCommits(string repoSlug, string spec, string workspace, map<string|string[]> headers) returns error?Get a patch for two commits
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- spec string - A commit SHA (e.g.
3a8b42) or a commit range using double dot notation (e.g.3a8b42..9ff173)
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - The raw patches
listGroupPermissionsForRepository
function listGroupPermissionsForRepository(string repoSlug, string workspace, map<string|string[]> headers) returns PaginatedRepositoryGroupPermissions|errorList explicit group permissions for a repository
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- PaginatedRepositoryGroupPermissions|error - Paginated of explicit group permissions on the repository
getGroupPermissionForRepository
function getGroupPermissionForRepository(string groupSlug, string repoSlug, string workspace, map<string|string[]> headers) returns RepositoryGroupPermission|errorGet an explicit group permission for a repository
Parameters
- groupSlug string - Slug of the requested group
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- RepositoryGroupPermission|error - Group permission for group slug and repository
updateGroupPermissionForRepository
function updateGroupPermissionForRepository(string groupSlug, string repoSlug, string workspace, RepoPermissionUpdate payload, map<string|string[]> headers) returns RepositoryGroupPermission|errorUpdate an explicit group permission for a repository
Parameters
- groupSlug string - Slug of the requested group
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- payload RepoPermissionUpdate - The permission to grant
Return Type
- RepositoryGroupPermission|error - Group permission updated
deleteGroupPermissionForRepository
function deleteGroupPermissionForRepository(string groupSlug, string repoSlug, string workspace, map<string|string[]> headers) returns error?Delete an explicit group permission for a repository
Parameters
- groupSlug string - Slug of the requested group
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - Group permission deleted
listUserPermissionsForRepository
function listUserPermissionsForRepository(string repoSlug, string workspace, map<string|string[]> headers) returns PaginatedRepositoryUserPermissions|errorList explicit user permissions for a repository
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- PaginatedRepositoryUserPermissions|error - Paginated of explicit user permissions on the repository
getUserPermissionForRepository
function getUserPermissionForRepository(string repoSlug, string selectedUserId, string workspace, map<string|string[]> headers) returns RepositoryUserPermission|errorGet an explicit user permission for a repository
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- selectedUserId string - This can either be the UUID of the account, surrounded by curly-braces, for
example:
{account UUID}, OR an Atlassian Account ID
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- RepositoryUserPermission|error - Explicit user permission for user and repository
updateUserPermissionForRepository
function updateUserPermissionForRepository(string repoSlug, string selectedUserId, string workspace, RepoPermissionUpdate payload, map<string|string[]> headers) returns RepositoryUserPermission|errorUpdate an explicit user permission for a repository
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- selectedUserId string - This can either be the UUID of the account, surrounded by curly-braces, for
example:
{account UUID}, OR an Atlassian Account ID
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- payload RepoPermissionUpdate - The permission to grant
Return Type
- RepositoryUserPermission|error - Explicit user permission updated
deleteUserPermissionForRepository
function deleteUserPermissionForRepository(string repoSlug, string selectedUserId, string workspace, map<string|string[]> headers) returns error?Delete an explicit user permission for a repository
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- selectedUserId string - This can either be the UUID of the account, surrounded by curly-braces, for
example:
{account UUID}, OR an Atlassian Account ID
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - The repository user permission was deleted and no content returned
listPipelines
function listPipelines(string workspace, string repoSlug, map<string|string[]> headers, *ListPipelinesQueries queries) returns PaginatedPipelines|errorList pipelines
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- queries *ListPipelinesQueries - Queries to be sent with the request
Return Type
- PaginatedPipelines|error - The matching pipelines
runPipeline
function runPipeline(string workspace, string repoSlug, Pipeline payload, map<string|string[]> headers, *RunPipelineQueries queries) returns Pipeline|errorRun a pipeline
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- payload Pipeline - The pipeline to initiate
- queries *RunPipelineQueries - Queries to be sent with the request
listCaches
function listCaches(string workspace, string repoSlug, map<string|string[]> headers) returns PaginatedPipelineCaches|errorList caches
Return Type
- PaginatedPipelineCaches|error - The list of caches for the given repository
clearRepoCaches
function clearRepoCaches(string workspace, string repoSlug, map<string|string[]> headers, *ClearRepoCachesQueries queries) returns error?Delete caches
Parameters
- workspace string - The account
- repoSlug string - The repository
- queries *ClearRepoCachesQueries - Queries to be sent with the request
Return Type
- error? - The caches were deleted
deleteCache
function deleteCache(string workspace, string repoSlug, string cacheUuid, map<string|string[]> headers) returns error?Delete a cache
Parameters
- workspace string - The account
- repoSlug string - The repository
- cacheUuid string - The UUID of the cache to delete
Return Type
- error? - The cache was deleted
getCacheContentUri
function getCacheContentUri(string workspace, string repoSlug, string cacheUuid, map<string|string[]> headers) returns PipelineCacheContentUri|errorGet cache content URI
Parameters
- workspace string - The account
- repoSlug string - The repository
- cacheUuid string - The UUID of the cache
Return Type
- PipelineCacheContentUri|error - The cache content uri
listRepoRunners
function listRepoRunners(string workspace, string repoSlug, map<string|string[]> headers) returns PaginatedPipelineRunners|errorGet repository runners
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
Return Type
- PaginatedPipelineRunners|error - The repository runners
createRepositoryRunner
function createRepositoryRunner(string workspace, string repoSlug, map<string|string[]> headers) returns PipelineRunner|errorCreate repository runner
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
Return Type
- PipelineRunner|error - The repository runner
getRepoRunnerByUuid
function getRepoRunnerByUuid(string workspace, string repoSlug, string runnerUuid, map<string|string[]> headers) returns PipelineRunner|errorGet repository runner
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- runnerUuid string - The runner uuid
Return Type
- PipelineRunner|error - The repository runner
updateRepositoryRunner
function updateRepositoryRunner(string workspace, string repoSlug, string runnerUuid, map<string|string[]> headers) returns PipelineRunner|errorUpdate repository runner
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- runnerUuid string - The runner uuid
Return Type
- PipelineRunner|error - The repository runner
deleteRepositoryRunner
function deleteRepositoryRunner(string workspace, string repoSlug, string runnerUuid, map<string|string[]> headers) returns error?Delete repository runner
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- runnerUuid string - The runner uuid
Return Type
- error? - The repository runner was deleted
getPipeline
function getPipeline(string workspace, string repoSlug, string pipelineUuid, map<string|string[]> headers) returns Pipeline|errorGet a pipeline
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- pipelineUuid string - The pipeline UUID
listStepsForPipeline
function listStepsForPipeline(string workspace, string repoSlug, string pipelineUuid, map<string|string[]> headers) returns PaginatedPipelineSteps|errorList steps for a pipeline
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- pipelineUuid string - The UUID of the pipeline
Return Type
- PaginatedPipelineSteps|error - The steps
getStepPipeline
function getStepPipeline(string workspace, string repoSlug, string pipelineUuid, string stepUuid, map<string|string[]> headers) returns PipelineStep|errorGet a step of a pipeline
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- pipelineUuid string - The UUID of the pipeline
- stepUuid string - The UUID of the step
Return Type
- PipelineStep|error - The step
getLogFileForStep
function getLogFileForStep(string workspace, string repoSlug, string pipelineUuid, string stepUuid, map<string|string[]> headers) returns error?Get log file for a step
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- pipelineUuid string - The UUID of the pipeline
- stepUuid string - The UUID of the step
Return Type
- error? - The raw log file for this pipeline step
getPipelineStepContainerLog
function getPipelineStepContainerLog(string workspace, string repoSlug, string pipelineUuid, string stepUuid, string logUuid, map<string|string[]> headers) returns error?Get the logs for the build container or a service container for a given step of a pipeline.
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- pipelineUuid string - The UUID of the pipeline
- stepUuid string - The UUID of the step
- logUuid string - For the main build container specify the step UUID; for a service container specify the service container UUID
Return Type
- error? - The raw log file for the build container or service container
getPipelineStepTestReportSummary
function getPipelineStepTestReportSummary(string workspace, string repoSlug, string pipelineUuid, string stepUuid, map<string|string[]> headers) returns error?Get a summary of test reports for a given step of a pipeline.
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- pipelineUuid string - The UUID of the pipeline
- stepUuid string - The UUID of the step
Return Type
- error? - A summary of test reports for this pipeline step
getTestCasesForStepPipeline
function getTestCasesForStepPipeline(string workspace, string repoSlug, string pipelineUuid, string stepUuid, map<string|string[]> headers) returns error?Get test cases for a given step of a pipeline.
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- pipelineUuid string - The UUID of the pipeline
- stepUuid string - The UUID of the step
Return Type
- error? - Test cases for this pipeline step
getPipelineTestCaseReasons
function getPipelineTestCaseReasons(string workspace, string repoSlug, string pipelineUuid, string stepUuid, string testCaseUuid, map<string|string[]> headers) returns error?Get test case reasons (output) for a given test case in a step of a pipeline.
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- pipelineUuid string - The UUID of the pipeline
- stepUuid string - The UUID of the step
- testCaseUuid string - The UUID of the test case
Return Type
- error? - Test case reasons (output)
stopPipeline
function stopPipeline(string workspace, string repoSlug, string pipelineUuid, map<string|string[]> headers) returns error?Stop a pipeline
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- pipelineUuid string - The UUID of the pipeline
Return Type
- error? - The pipeline has been signaled to stop
getConfiguration
function getConfiguration(string workspace, string repoSlug, map<string|string[]> headers) returns PipelinesConfig|errorGet configuration
Return Type
- PipelinesConfig|error - The repository pipelines configuration
updateConfiguration
function updateConfiguration(string workspace, string repoSlug, PipelinesConfig payload, map<string|string[]> headers) returns PipelinesConfig|errorUpdate configuration
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- payload PipelinesConfig - The updated repository pipelines configuration
Return Type
- PipelinesConfig|error - The repository pipelines configuration was updated
updateNextBuildNumber
function updateNextBuildNumber(string workspace, string repoSlug, PipelineBuildNumber payload, map<string|string[]> headers) returns PipelineBuildNumber|errorUpdate the next build number
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- payload PipelineBuildNumber - The build number to update
Return Type
- PipelineBuildNumber|error - The build number has been configured
listSchedules
function listSchedules(string workspace, string repoSlug, map<string|string[]> headers) returns PaginatedPipelineSchedules|errorList schedules
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
Return Type
- PaginatedPipelineSchedules|error - The list of schedules
createSchedule
function createSchedule(string workspace, string repoSlug, PipelineSchedulePostRequestBody payload, map<string|string[]> headers) returns PipelineSchedule|errorCreate a schedule
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- payload PipelineSchedulePostRequestBody - The schedule to create
Return Type
- PipelineSchedule|error - The created schedule
getSchedule
function getSchedule(string workspace, string repoSlug, string scheduleUuid, map<string|string[]> headers) returns PipelineSchedule|errorGet a schedule
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- scheduleUuid string - The uuid of the schedule
Return Type
- PipelineSchedule|error - The requested schedule
updateSchedule
function updateSchedule(string workspace, string repoSlug, string scheduleUuid, PipelineSchedulePutRequestBody payload, map<string|string[]> headers) returns PipelineSchedule|errorUpdate a schedule
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- scheduleUuid string - The uuid of the schedule
- payload PipelineSchedulePutRequestBody - The schedule to update
Return Type
- PipelineSchedule|error - The schedule is updated
deleteSchedule
function deleteSchedule(string workspace, string repoSlug, string scheduleUuid, map<string|string[]> headers) returns error?Delete a schedule
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- scheduleUuid string - The uuid of the schedule
Return Type
- error? - The schedule was deleted
listExecutionsSchedule
function listExecutionsSchedule(string workspace, string repoSlug, string scheduleUuid, map<string|string[]> headers) returns PaginatedPipelineScheduleExecutions|errorList executions of a schedule
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- scheduleUuid string - The uuid of the schedule
Return Type
- PaginatedPipelineScheduleExecutions|error - The list of executions of a schedule
getSshKeyPair
function getSshKeyPair(string workspace, string repoSlug, map<string|string[]> headers) returns PipelineSshKeyPair|errorGet SSH key pair
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
Return Type
- PipelineSshKeyPair|error - The SSH key pair
updateSshKeyPair
function updateSshKeyPair(string workspace, string repoSlug, PipelineSshKeyPair payload, map<string|string[]> headers) returns PipelineSshKeyPair|errorUpdate SSH key pair
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- payload PipelineSshKeyPair - The created or updated SSH key pair
Return Type
- PipelineSshKeyPair|error - The SSH key pair was created or updated
deleteSshKeyPair
function deleteSshKeyPair(string workspace, string repoSlug, map<string|string[]> headers) returns error?Delete SSH key pair
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
Return Type
- error? - The SSH key pair was deleted
listKnownHosts
function listKnownHosts(string workspace, string repoSlug, map<string|string[]> headers) returns PaginatedPipelineKnownHosts|errorList known hosts
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
Return Type
- PaginatedPipelineKnownHosts|error - The retrieved known hosts
createKnownHost
function createKnownHost(string workspace, string repoSlug, PipelineKnownHost payload, map<string|string[]> headers) returns PipelineKnownHost|errorCreate a known host
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- payload PipelineKnownHost - The known host to create
Return Type
- PipelineKnownHost|error - The known host was created
getKnownHost
function getKnownHost(string workspace, string repoSlug, string knownHostUuid, map<string|string[]> headers) returns PipelineKnownHost|errorGet a known host
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- knownHostUuid string - The UUID of the known host to retrieve
Return Type
- PipelineKnownHost|error - The known host
updateKnownHost
function updateKnownHost(string workspace, string repoSlug, string knownHostUuid, PipelineKnownHost payload, map<string|string[]> headers) returns PipelineKnownHost|errorUpdate a known host
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- knownHostUuid string - The UUID of the known host to update
- payload PipelineKnownHost - The updated known host
Return Type
- PipelineKnownHost|error - The known host was updated
deleteKnownHost
function deleteKnownHost(string workspace, string repoSlug, string knownHostUuid, map<string|string[]> headers) returns error?Delete a known host
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- knownHostUuid string - The UUID of the known host to delete
Return Type
- error? - The known host was deleted
listVariablesForRepository
function listVariablesForRepository(string workspace, string repoSlug, map<string|string[]> headers) returns PaginatedPipelineVariables|errorList variables for a repository
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
Return Type
- PaginatedPipelineVariables|error - The retrieved variables
createVariableForRepository
function createVariableForRepository(string workspace, string repoSlug, PipelineVariable payload, map<string|string[]> headers) returns PipelineVariable|errorCreate a variable for a repository
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- payload PipelineVariable - The variable to create
Return Type
- PipelineVariable|error - The variable was created
getVariableForRepository
function getVariableForRepository(string workspace, string repoSlug, string variableUuid, map<string|string[]> headers) returns PipelineVariable|errorGet a variable for a repository
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- variableUuid string - The UUID of the variable to retrieve
Return Type
- PipelineVariable|error - The variable
updateVariableForRepository
function updateVariableForRepository(string workspace, string repoSlug, string variableUuid, PipelineVariable payload, map<string|string[]> headers) returns PipelineVariable|errorUpdate a variable for a repository
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- variableUuid string - The UUID of the variable to update
- payload PipelineVariable - The updated variable
Return Type
- PipelineVariable|error - The variable was updated
deleteVariableForRepository
function deleteVariableForRepository(string workspace, string repoSlug, string variableUuid, map<string|string[]> headers) returns error?Delete a variable for a repository
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- repoSlug string - The repository
- variableUuid string - The UUID of the variable to delete
Return Type
- error? - The variable was deleted
getRepositoryApplicationProperty
function getRepositoryApplicationProperty(string workspace, string repoSlug, string appKey, string propertyName, map<string|string[]> headers) returns ApplicationProperty|errorGet a repository application property
Parameters
- workspace string - The repository container; either the workspace slug or the UUID in curly braces
- repoSlug string - The repository
- appKey string - The key of the Connect app
- propertyName string - The name of the property
Return Type
- ApplicationProperty|error - The value of the property
Deprecated
updateRepositoryApplicationProperty
function updateRepositoryApplicationProperty(string workspace, string repoSlug, string appKey, string propertyName, ApplicationProperty payload, map<string|string[]> headers) returns error?Update a repository application property
Parameters
- workspace string - The repository container; either the workspace slug or the UUID in curly braces
- repoSlug string - The repository
- appKey string - The key of the Connect app
- propertyName string - The name of the property
- payload ApplicationProperty - The application property to create or update
Return Type
- error? - An empty response
Deprecated
deleteRepositoryApplicationProperty
function deleteRepositoryApplicationProperty(string workspace, string repoSlug, string appKey, string propertyName, map<string|string[]> headers) returns error?Delete a repository application property
Parameters
- workspace string - The repository container; either the workspace slug or the UUID in curly braces
- repoSlug string - The repository
- appKey string - The key of the Connect app
- propertyName string - The name of the property
Return Type
- error? - An empty response
Deprecated
listPullRequests
function listPullRequests(string repoSlug, string workspace, map<string|string[]> headers, *ListPullRequestsQueries queries) returns PaginatedPullrequests|errorList pull requests
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- queries *ListPullRequestsQueries - Queries to be sent with the request
Return Type
- PaginatedPullrequests|error - All pull requests on the specified repository
createPullRequest
function createPullRequest(string repoSlug, string workspace, Pullrequest payload, map<string|string[]> headers) returns Pullrequest|errorCreate a pull request
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- payload Pullrequest - The new pull request
Return Type
- Pullrequest|error - The newly created pull request
listRepoPullRequestActivity
function listRepoPullRequestActivity(string repoSlug, string workspace, map<string|string[]> headers) returns error?List pull request activity log for a repository
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - The pull request activity log
getPullRequest
function getPullRequest(int pullRequestId, string repoSlug, string workspace, map<string|string[]> headers) returns Pullrequest|errorGet a pull request
Parameters
- pullRequestId int - The id of the pull request
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- Pullrequest|error - The pull request object
updatePullRequest
function updatePullRequest(int pullRequestId, string repoSlug, string workspace, Pullrequest payload, map<string|string[]> headers) returns Pullrequest|errorUpdate a pull request
Parameters
- pullRequestId int - The id of the pull request
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- payload Pullrequest - The pull request that is to be updated
Return Type
- Pullrequest|error - The updated pull request
listPullRequestActivity
function listPullRequestActivity(int pullRequestId, string repoSlug, string workspace, map<string|string[]> headers) returns error?List activity log for a pull request
Parameters
- pullRequestId int - The id of the pull request
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - The pull request activity log
approvePullRequest
function approvePullRequest(int pullRequestId, string repoSlug, string workspace, map<string|string[]> headers) returns Participant|errorApprove a pull request
Parameters
- pullRequestId int - The id of the pull request
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- Participant|error - The
participantobject recording that the authenticated user approved the pull request
unapprovePullRequest
function unapprovePullRequest(int pullRequestId, string repoSlug, string workspace, map<string|string[]> headers) returns error?Unapprove a pull request
Parameters
- pullRequestId int - The id of the pull request
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - An empty response indicating the authenticated user's approval has been withdrawn
listCommentsOnPullRequest
function listCommentsOnPullRequest(int pullRequestId, string repoSlug, string workspace, map<string|string[]> headers) returns PaginatedPullrequestComments|errorList comments on a pull request
Parameters
- pullRequestId int - The id of the pull request
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- PaginatedPullrequestComments|error - A paginated list of comments made on the given pull request, in chronological order
createCommentOnPullRequest
function createCommentOnPullRequest(int pullRequestId, string repoSlug, string workspace, PullrequestComment payload, map<string|string[]> headers) returns PullrequestComment|errorCreate a comment on a pull request
Parameters
- pullRequestId int - The id of the pull request
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- payload PullrequestComment - The comment object
Return Type
- PullrequestComment|error - The newly created comment
getCommentOnPullRequest
function getCommentOnPullRequest(int commentId, int pullRequestId, string repoSlug, string workspace, map<string|string[]> headers) returns PullrequestComment|errorGet a comment on a pull request
Parameters
- commentId int - The id of the comment
- pullRequestId int - The id of the pull request
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- PullrequestComment|error - The comment
updateCommentOnPullRequest
function updateCommentOnPullRequest(int commentId, int pullRequestId, string repoSlug, string workspace, PullrequestComment payload, map<string|string[]> headers) returns PullrequestComment|errorUpdate a comment on a pull request
Parameters
- commentId int - The id of the comment
- pullRequestId int - The id of the pull request
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- payload PullrequestComment - The contents of the updated comment
Return Type
- PullrequestComment|error - The updated comment
deleteCommentOnPullRequest
function deleteCommentOnPullRequest(int commentId, int pullRequestId, string repoSlug, string workspace, map<string|string[]> headers) returns error?Delete a comment on a pull request
Parameters
- commentId int - The id of the comment
- pullRequestId int - The id of the pull request
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - Successful deletion
resolveCommentThread
function resolveCommentThread(int commentId, int pullRequestId, string repoSlug, string workspace, map<string|string[]> headers) returns CommentResolution|errorResolve a comment thread
Parameters
- commentId int - The id of the comment
- pullRequestId int - The id of the pull request
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- CommentResolution|error - The comment resolution details
reopenCommentThread
function reopenCommentThread(int commentId, int pullRequestId, string repoSlug, string workspace, map<string|string[]> headers) returns error?Reopen a comment thread
Parameters
- commentId int - The id of the comment
- pullRequestId int - The id of the pull request
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - The comment is reopened
listCommitsOnPullRequest
function listCommitsOnPullRequest(int pullRequestId, string repoSlug, string workspace, map<string|string[]> headers) returns error?List commits on a pull request
Parameters
- pullRequestId int - The id of the pull request
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - A paginated list of commits made on the given pull request, in chronological order. This list will be empty if the source branch no longer exists
getFileConflictsForPullRequest
function getFileConflictsForPullRequest(int pullRequestId, string repoSlug, string workspace, map<string|string[]> headers) returns error?Get file conflicts for a pull request
Parameters
- pullRequestId int - The id of the pull request
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - Redirects to the repository file conflicts with the revspec that corresponds to the pull request
declinePullRequest
function declinePullRequest(int pullRequestId, string repoSlug, string workspace, map<string|string[]> headers) returns Pullrequest|errorDecline a pull request
Parameters
- pullRequestId int - The id of the pull request
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- Pullrequest|error - The pull request was successfully declined
listChangesInPullRequest
function listChangesInPullRequest(int pullRequestId, string repoSlug, string workspace, map<string|string[]> headers) returns error?List changes in a pull request
Parameters
- pullRequestId int - The id of the pull request
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - Redirects to the repository diff with the revspec that corresponds to the pull request
getDiffStatForPullRequest
function getDiffStatForPullRequest(int pullRequestId, string repoSlug, string workspace, map<string|string[]> headers) returns error?Get the diff stat for a pull request
Parameters
- pullRequestId int - The id of the pull request
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - Redirects to the repository diffstat with the revspec that corresponds to pull request
mergePullRequest
function mergePullRequest(int pullRequestId, string repoSlug, string workspace, PullrequestMergeParameters payload, map<string|string[]> headers, *MergePullRequestQueries queries) returns Pullrequest|error?Merge a pull request
Parameters
- pullRequestId int - The id of the pull request
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- payload PullrequestMergeParameters - Merge strategy, commit message and branch-closing options
- queries *MergePullRequestQueries - Queries to be sent with the request
Return Type
- Pullrequest|error? - The pull request object
getMergeTaskStatusForPullRequest
function getMergeTaskStatusForPullRequest(int pullRequestId, string repoSlug, string taskId, string workspace, map<string|string[]> headers) returns error?Get the merge task status for a pull request
Parameters
- pullRequestId int - The id of the pull request
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- taskId string - ID of the merge task
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - Returns a task status if the merge is either pending or successful, and if it is successful, a pull request
listPullRequestMergeabilityChecks
function listPullRequestMergeabilityChecks(int pullRequestId, string repoSlug, string workspace, map<string|string[]> headers, *ListPullRequestMergeabilityChecksQueries queries) returns PullrequestMergeabilityChecks|errorList pull request mergeability checks
Parameters
- pullRequestId int - The id of the pull request
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- queries *ListPullRequestMergeabilityChecksQueries - Queries to be sent with the request
Return Type
- PullrequestMergeabilityChecks|error - The collection of checks that determine whether the specified pull request can be merged
getPatchForPullRequest
function getPatchForPullRequest(int pullRequestId, string repoSlug, string workspace, map<string|string[]> headers) returns error?Get the patch for a pull request
Parameters
- pullRequestId int - The id of the pull request
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - Redirects to the repository patch with the revspec that corresponds to pull request
requestChangesForPullRequest
function requestChangesForPullRequest(int pullRequestId, string repoSlug, string workspace, map<string|string[]> headers) returns Participant|errorRequest changes for a pull request
Parameters
- pullRequestId int - The id of the pull request
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- Participant|error - The
participantobject recording that the authenticated user requested changes on the pull request
removeChangeRequestForPullRequest
function removeChangeRequestForPullRequest(int pullRequestId, string repoSlug, string workspace, map<string|string[]> headers) returns error?Remove change request for a pull request
Parameters
- pullRequestId int - The id of the pull request
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - An empty response indicating the authenticated user's request for change has been withdrawn
listCommitStatusesForPullRequest
function listCommitStatusesForPullRequest(int pullRequestId, string repoSlug, string workspace, map<string|string[]> headers, *ListCommitStatusesForPullRequestQueries queries) returns PaginatedCommitstatuses|errorList commit statuses for a pull request
Parameters
- pullRequestId int - The id of the pull request
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- queries *ListCommitStatusesForPullRequestQueries - Queries to be sent with the request
Return Type
- PaginatedCommitstatuses|error - A paginated list of all commit statuses for this pull request
listTasksOnPullRequest
function listTasksOnPullRequest(int pullRequestId, string repoSlug, string workspace, map<string|string[]> headers, *ListTasksOnPullRequestQueries queries) returns PaginatedTasks|errorList tasks on a pull request
Parameters
- pullRequestId int - The id of the pull request
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- queries *ListTasksOnPullRequestQueries - Queries to be sent with the request
Return Type
- PaginatedTasks|error - A paginated list of pull request tasks for the given pull request
createTaskOnPullRequest
function createTaskOnPullRequest(int pullRequestId, string repoSlug, string workspace, PullrequestTaskCreate payload, map<string|string[]> headers) returns PullrequestCommentTask|errorCreate a task on a pull request
Parameters
- pullRequestId int - The id of the pull request
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- payload PullrequestTaskCreate - The contents of the task
Return Type
- PullrequestCommentTask|error - The newly created task
getTaskOnPullRequest
function getTaskOnPullRequest(int pullRequestId, string repoSlug, int taskId, string workspace, map<string|string[]> headers) returns PullrequestCommentTask|errorGet a task on a pull request
Parameters
- pullRequestId int - The id of the pull request
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- taskId int - The ID of the task
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- PullrequestCommentTask|error - The task
updateTaskOnPullRequest
function updateTaskOnPullRequest(int pullRequestId, string repoSlug, int taskId, string workspace, PullrequestTaskUpdate payload, map<string|string[]> headers) returns PullrequestCommentTask|errorUpdate a task on a pull request
Parameters
- pullRequestId int - The id of the pull request
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- taskId int - The ID of the task
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- payload PullrequestTaskUpdate - The updated state and content of the task
Return Type
- PullrequestCommentTask|error - The updated task
deleteTaskOnPullRequest
function deleteTaskOnPullRequest(int pullRequestId, string repoSlug, int taskId, string workspace, map<string|string[]> headers) returns error?Delete a task on a pull request
Parameters
- pullRequestId int - The id of the pull request
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- taskId int - The ID of the task
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - Successful deletion
getPullRequestApplicationProperty
function getPullRequestApplicationProperty(string workspace, string repoSlug, string pullrequestId, string appKey, string propertyName, map<string|string[]> headers) returns ApplicationProperty|errorGet a pull request application property
Parameters
- workspace string - The repository container; either the workspace slug or the UUID in curly braces
- repoSlug string - The repository
- pullrequestId string - The pull request ID
- appKey string - The key of the Connect app
- propertyName string - The name of the property
Return Type
- ApplicationProperty|error - The value of the property
Deprecated
updatePullRequestApplicationProperty
function updatePullRequestApplicationProperty(string workspace, string repoSlug, string pullrequestId, string appKey, string propertyName, ApplicationProperty payload, map<string|string[]> headers) returns error?Update a pull request application property
Parameters
- workspace string - The repository container; either the workspace slug or the UUID in curly braces
- repoSlug string - The repository
- pullrequestId string - The pull request ID
- appKey string - The key of the Connect app
- propertyName string - The name of the property
- payload ApplicationProperty - The application property to create or update
Return Type
- error? - An empty response
Deprecated
deletePullRequestApplicationProperty
function deletePullRequestApplicationProperty(string workspace, string repoSlug, string pullrequestId, string appKey, string propertyName, map<string|string[]> headers) returns error?Delete a pull request application property
Parameters
- workspace string - The repository container; either the workspace slug or the UUID in curly braces
- repoSlug string - The repository
- pullrequestId string - The pull request ID
- appKey string - The key of the Connect app
- propertyName string - The name of the property
Return Type
- error? - An empty response
Deprecated
listBranchesAndTags
function listBranchesAndTags(string repoSlug, string workspace, map<string|string[]> headers, *ListBranchesAndTagsQueries queries) returns PaginatedRefs|errorList branches and tags
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- queries *ListBranchesAndTagsQueries - Queries to be sent with the request
Return Type
- PaginatedRefs|error - A paginated list of refs matching any filter criteria that were provided
listOpenBranches
function listOpenBranches(string repoSlug, string workspace, map<string|string[]> headers, *ListOpenBranchesQueries queries) returns PaginatedBranches|errorList open branches
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- queries *ListOpenBranchesQueries - Queries to be sent with the request
Return Type
- PaginatedBranches|error - A paginated list of branches matching any filter criteria that were provided
createBranch
function createBranch(string repoSlug, string workspace, map<string|string[]> headers) returns Branch|errorCreate a branch
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
getBranch
function getBranch(string name, string repoSlug, string workspace, map<string|string[]> headers) returns Branch|errorGet a branch
Parameters
- name string - The name of the branch
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
deleteBranch
function deleteBranch(string name, string repoSlug, string workspace, map<string|string[]> headers) returns error?Delete a branch
Parameters
- name string - The name of the branch
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - Indicates that the specified branch was successfully deleted
listTags
function listTags(string repoSlug, string workspace, map<string|string[]> headers, *ListTagsQueries queries) returns PaginatedTags|errorList tags
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- queries *ListTagsQueries - Queries to be sent with the request
Return Type
- PaginatedTags|error - A paginated list of tags matching any filter criteria that were provided
createTag
function createTag(string repoSlug, string workspace, Tag payload, map<string|string[]> headers) returns Tag|errorCreate a tag
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- payload Tag - Name and target commit of the tag to create
getTag
function getTag(string name, string repoSlug, string workspace, map<string|string[]> headers) returns Tag|errorGet a tag
Parameters
- name string - The name of the tag
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
deleteTag
function deleteTag(string name, string repoSlug, string workspace, map<string|string[]> headers) returns error?Delete a tag
Parameters
- name string - The name of the tag
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - Indicates the specified tag was successfully deleted
getRootDirectoryMainBranch
function getRootDirectoryMainBranch(string repoSlug, string workspace, map<string|string[]> headers, *GetRootDirectoryMainBranchQueries queries) returns PaginatedTreeentries|errorGet the root directory of the main branch
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- queries *GetRootDirectoryMainBranchQueries - Queries to be sent with the request
Return Type
- PaginatedTreeentries|error - If the path matches a file, then the raw contents of the file are returned (unless the
format=metaquery parameter was provided, in which case a json document containing the file's meta data is returned). If the path matches a directory, then a paginated list of file and directory entries is returned (if theformat=metaquery parameter was provided, then the json document containing the directory's meta data is returned)
createCommitByUploadingFile
function createCommitByUploadingFile(string repoSlug, string workspace, map<string|string[]> headers, *CreateCommitByUploadingFileQueries queries) returns error?Create a commit by uploading a file
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- queries *CreateCommitByUploadingFileQueries - Queries to be sent with the request
Return Type
- error? - Success
getFileOrDirectoryContents
function getFileOrDirectoryContents(string 'commit, string path, string repoSlug, string workspace, map<string|string[]> headers, *GetFileOrDirectoryContentsQueries queries) returns PaginatedTreeentries|errorGet file or directory contents
Parameters
- 'commit string - The commit's SHA1
- path string - Path to the file
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- queries *GetFileOrDirectoryContentsQueries - Queries to be sent with the request
Return Type
- PaginatedTreeentries|error - If the path matches a file, then the raw contents of the file are returned. If the
format=metaquery parameter is provided, a json document containing the file's meta data is returned. If theformat=renderedquery parameter is provided, the contents of the file in HTML-formated rendered markup is returned. If the path matches a directory, then a paginated list of file and directory entries is returned (if theformat=metaquery parameter was provided, then the json document containing the directory's meta data is returned.)
listRepositoriesWatchers
function listRepositoriesWatchers(string repoSlug, string workspace, map<string|string[]> headers) returns PaginatedAccounts|errorList repositories watchers
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- PaginatedAccounts|error - A paginated list of all the watchers on the specified repository
createSnippet
Create a snippet
Parameters
- payload Snippet - The new snippet object
listSnippetsInWorkspace
function listSnippetsInWorkspace(string workspace, map<string|string[]> headers, *ListSnippetsInWorkspaceQueries queries) returns PaginatedSnippets|errorList snippets in a workspace
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- queries *ListSnippetsInWorkspaceQueries - Queries to be sent with the request
Return Type
- PaginatedSnippets|error - A paginated list of snippets
createSnippetForWorkspace
function createSnippetForWorkspace(string workspace, Snippet payload, map<string|string[]> headers) returns Snippet|errorCreate a snippet for a workspace
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- payload Snippet - The new snippet object
getSnippet
function getSnippet(string encodedId, string workspace, map<string|string[]> headers) returns Snippet|errorGet a snippet
Parameters
- encodedId string - The snippet id
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
updateSnippet
function updateSnippet(string encodedId, string workspace, map<string|string[]> headers) returns Snippet|errorUpdate a snippet
Parameters
- encodedId string - The snippet id
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
deleteSnippet
function deleteSnippet(string encodedId, string workspace, map<string|string[]> headers) returns error?Delete a snippet
Parameters
- encodedId string - The snippet id
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - If the snippet was deleted successfully
listCommentsOnSnippet
function listCommentsOnSnippet(string encodedId, string workspace, map<string|string[]> headers) returns PaginatedSnippetComments|errorList comments on a snippet
Parameters
- encodedId string - The snippet id
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- PaginatedSnippetComments|error - A paginated list of snippet comments, ordered by creation date
createCommentOnSnippet
function createCommentOnSnippet(string encodedId, string workspace, SnippetComment payload, map<string|string[]> headers) returns SnippetComment|errorCreate a comment on a snippet
Parameters
- encodedId string - The snippet id
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- payload SnippetComment - The contents of the new comment
Return Type
- SnippetComment|error - The newly created comment
getCommentOnSnippet
function getCommentOnSnippet(int commentId, string encodedId, string workspace, map<string|string[]> headers) returns SnippetComment|errorGet a comment on a snippet
Parameters
- commentId int - The id of the comment
- encodedId string - The snippet id
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- SnippetComment|error - The specified comment
updateCommentOnSnippet
function updateCommentOnSnippet(int commentId, string encodedId, string workspace, SnippetComment payload, map<string|string[]> headers) returns SnippetComment|errorUpdate a comment on a snippet
Parameters
- commentId int - The id of the comment
- encodedId string - The snippet id
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- payload SnippetComment - The contents to update the comment to
Return Type
- SnippetComment|error - The updated comment object
deleteCommentOnSnippet
function deleteCommentOnSnippet(int commentId, string encodedId, string workspace, map<string|string[]> headers) returns error?Delete a comment on a snippet
Parameters
- commentId int - The id of the comment
- encodedId string - The snippet id
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - Indicates the comment was deleted successfully
listSnippetChanges
function listSnippetChanges(string encodedId, string workspace, map<string|string[]> headers) returns PaginatedSnippetCommit|errorList snippet changes
Parameters
- encodedId string - The snippet id
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- PaginatedSnippetCommit|error - The paginated list of snippet commits
getPreviousSnippetChange
function getPreviousSnippetChange(string encodedId, string revision, string workspace, map<string|string[]> headers) returns SnippetCommit|errorGet a previous snippet change
Parameters
- encodedId string - The snippet id
- revision string - The commit's SHA1
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- SnippetCommit|error - The specified snippet commit
getSnippetRawFileAtHead
function getSnippetRawFileAtHead(string encodedId, string path, string workspace, map<string|string[]> headers) returns error?Get a snippet's raw file at HEAD
Parameters
- encodedId string - The snippet id
- path string - Path to the file
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - A redirect to the most recent revision of the specified file
checkIfCurrentUserIsWatchingSnippet
function checkIfCurrentUserIsWatchingSnippet(string encodedId, string workspace, map<string|string[]> headers) returns error?Check if the current user is watching a snippet
Parameters
- encodedId string - The snippet id
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - If the authenticated user is watching the snippet
watchSnippet
function watchSnippet(string encodedId, string workspace, map<string|string[]> headers) returns error?Watch a snippet
Parameters
- encodedId string - The snippet id
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - Indicates the authenticated user is now watching the snippet
stopWatchingSnippet
function stopWatchingSnippet(string encodedId, string workspace, map<string|string[]> headers) returns error?Stop watching a snippet
Parameters
- encodedId string - The snippet id
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - Indicates the user stopped watching the snippet successfully
listUsersWatchingSnippet
function listUsersWatchingSnippet(string encodedId, string workspace, map<string|string[]> headers) returns PaginatedAccounts|errorList users watching a snippet
Parameters
- encodedId string - The snippet id
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- PaginatedAccounts|error - The paginated list of users watching this snippet
Deprecated
getPreviousRevisionSnippet
function getPreviousRevisionSnippet(string encodedId, string nodeId, string workspace, map<string|string[]> headers) returns Snippet|errorGet a previous revision of a snippet
Parameters
- encodedId string - The snippet id
- nodeId string - A commit revision (SHA1)
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
updatePreviousRevisionSnippet
function updatePreviousRevisionSnippet(string encodedId, string nodeId, string workspace, map<string|string[]> headers) returns Snippet|errorUpdate a previous revision of a snippet
Parameters
- encodedId string - The snippet id
- nodeId string - A commit revision (SHA1)
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
deletePreviousRevisionSnippet
function deletePreviousRevisionSnippet(string encodedId, string nodeId, string workspace, map<string|string[]> headers) returns error?Delete a previous revision of a snippet
Parameters
- encodedId string - The snippet id
- nodeId string - A commit revision (SHA1)
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - If the snippet was deleted successfully
getSnippetRawFile
function getSnippetRawFile(string encodedId, string nodeId, string path, string workspace, map<string|string[]> headers) returns error?Get a snippet's raw file
Parameters
- encodedId string - The snippet id
- nodeId string - A commit revision (SHA1)
- path string - Path to the file
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - Returns the contents of the specified file
getSnippetChangesBetweenVersions
function getSnippetChangesBetweenVersions(string encodedId, string revision, string workspace, map<string|string[]> headers, *GetSnippetChangesBetweenVersionsQueries queries) returns error?Get snippet changes between versions
Parameters
- encodedId string - The snippet id
- revision string - A revspec expression. This can simply be a commit SHA1, a ref name, or a compare expression like
staging..production
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- queries *GetSnippetChangesBetweenVersionsQueries - Queries to be sent with the request
Return Type
- error? - The raw diff contents
getSnippetPatchBetweenVersions
function getSnippetPatchBetweenVersions(string encodedId, string revision, string workspace, map<string|string[]> headers) returns error?Get snippet patch between versions
Parameters
- encodedId string - The snippet id
- revision string - A revspec expression. This can simply be a commit SHA1, a ref name, or a compare expression like
staging..production
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - The raw patch contents
listVariablesForAccount
function listVariablesForAccount(string username, map<string|string[]> headers) returns PaginatedPipelineVariables|errorList variables for an account
Parameters
- username string - The account
Return Type
- PaginatedPipelineVariables|error - The found account level variables
Deprecated
createTeamPipelineVariable
function createTeamPipelineVariable(string username, PipelineVariable payload, map<string|string[]> headers) returns PipelineVariable|errorCreate a variable for a team
Return Type
- PipelineVariable|error - The created variable
Deprecated
getVariableForTeam
function getVariableForTeam(string username, string variableUuid, map<string|string[]> headers) returns PipelineVariable|errorGet a variable for a team
Return Type
- PipelineVariable|error - The variable
Deprecated
updateVariableForTeam
function updateVariableForTeam(string username, string variableUuid, PipelineVariable payload, map<string|string[]> headers) returns PipelineVariable|errorUpdate a variable for a team
Parameters
- username string - The account
- variableUuid string - The UUID of the variable
- payload PipelineVariable - The updated variable
Return Type
- PipelineVariable|error - The variable was updated
Deprecated
deleteVariableForTeam
function deleteVariableForTeam(string username, string variableUuid, map<string|string[]> headers) returns error?Delete a variable for a team
Return Type
- error? - The variable was deleted
Deprecated
searchCodeInTeamRepositories
function searchCodeInTeamRepositories(string username, map<string|string[]> headers, *SearchCodeInTeamRepositoriesQueries queries) returns SearchResultPage|errorSearch for code in a team's repositories
Parameters
- username string - The account to search in; either the username or the UUID in curly braces
- queries *SearchCodeInTeamRepositoriesQueries - Queries to be sent with the request
Return Type
- SearchResultPage|error - Successful search
Deprecated
getCurrentUser
Get current user
listEmailAddressesForCurrentUser
List email addresses for current user
getEmailAddressForCurrentUser
function getEmailAddressForCurrentUser(string email, map<string|string[]> headers) returns Response|errorGet an email address for current user
Parameters
- email string - Email address of the user
listWorkspacesForCurrentUser
function listWorkspacesForCurrentUser(map<string|string[]> headers, *ListWorkspacesForCurrentUserQueries queries) returns PaginatedWorkspaceAccess|errorList workspaces for the current user
Parameters
- queries *ListWorkspacesForCurrentUserQueries - Queries to be sent with the request
Return Type
- PaginatedWorkspaceAccess|error - The list of workspaces accessible by the authenticated user
getUserPermissionOnWorkspace
function getUserPermissionOnWorkspace(string workspace, map<string|string[]> headers) returns WorkspaceMembership|errorGet user permission on a workspace
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- WorkspaceMembership|error - The user that is part of a workspace
listUserWorkspaceRepoPermissions
function listUserWorkspaceRepoPermissions(string workspace, map<string|string[]> headers, *ListUserWorkspaceRepoPermissionsQueries queries) returns PaginatedRepositoryPermissions|errorList repository permissions in a workspace for a user
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- queries *ListUserWorkspaceRepoPermissionsQueries - Queries to be sent with the request
Return Type
- PaginatedRepositoryPermissions|error - The list of repository permissions for the authenticated user in the specified workspace
getUser
Get a user
Parameters
- selectedUser string - This can either be an Atlassian Account ID OR the UUID of the account,
surrounded by curly-braces, for example:
{account UUID}
listGpgKeys
function listGpgKeys(string selectedUser, map<string|string[]> headers) returns PaginatedGpgUserKeys|errorList GPG keys
Parameters
- selectedUser string - This can either be an Atlassian Account ID OR the UUID of the account,
surrounded by curly-braces, for example:
{account UUID}
Return Type
- PaginatedGpgUserKeys|error - A list of the GPG keys associated with the account
addNewGpgKey
function addNewGpgKey(string selectedUser, GpgAccountKey payload, map<string|string[]> headers) returns GpgAccountKey|errorAdd a new GPG key
Parameters
- selectedUser string - This can either be an Atlassian Account ID OR the UUID of the account,
surrounded by curly-braces, for example:
{account UUID}
- payload GpgAccountKey - The new GPG key object
Return Type
- GpgAccountKey|error - The newly created GPG key
getGpgKey
function getGpgKey(string fingerprint, string selectedUser, map<string|string[]> headers) returns GpgAccountKey|errorGet a GPG key
Parameters
- fingerprint string - A GPG key fingerprint
- selectedUser string - This can either be an Atlassian Account ID OR the UUID of the account,
surrounded by curly-braces, for example:
{account UUID}
Return Type
- GpgAccountKey|error - The specific GPG key matching the user and fingerprint
deleteGpgKey
function deleteGpgKey(string fingerprint, string selectedUser, map<string|string[]> headers) returns error?Delete a GPG key
Parameters
- fingerprint string - A GPG key fingerprint
- selectedUser string - This can either be an Atlassian Account ID OR the UUID of the account,
surrounded by curly-braces, for example:
{account UUID}
Return Type
- error? - The key has been deleted
listVariablesForUser
function listVariablesForUser(string selectedUser, map<string|string[]> headers) returns PaginatedPipelineVariables|errorList variables for a user
Parameters
- selectedUser string - Either the UUID of the account surrounded by curly-braces, for example
{account UUID}, OR an Atlassian Account ID
Return Type
- PaginatedPipelineVariables|error - The found user level variables
Deprecated
createUserPipelineVariable
function createUserPipelineVariable(string selectedUser, PipelineVariable payload, map<string|string[]> headers) returns PipelineVariable|errorCreate a variable for a user
Parameters
- selectedUser string - Either the UUID of the account surrounded by curly-braces, for example
{account UUID}, OR an Atlassian Account ID
- payload PipelineVariable - The variable to create
Return Type
- PipelineVariable|error - The created variable
Deprecated
getVariableForUser
function getVariableForUser(string selectedUser, string variableUuid, map<string|string[]> headers) returns PipelineVariable|errorGet a variable for a user
Parameters
- selectedUser string - Either the UUID of the account surrounded by curly-braces, for example
{account UUID}, OR an Atlassian Account ID
- variableUuid string - The UUID of the variable to retrieve
Return Type
- PipelineVariable|error - The variable
Deprecated
updateVariableForUser
function updateVariableForUser(string selectedUser, string variableUuid, PipelineVariable payload, map<string|string[]> headers) returns PipelineVariable|errorUpdate a variable for a user
Parameters
- selectedUser string - Either the UUID of the account surrounded by curly-braces, for example
{account UUID}, OR an Atlassian Account ID
- variableUuid string - The UUID of the variable
- payload PipelineVariable - The updated variable
Return Type
- PipelineVariable|error - The variable was updated
Deprecated
deleteVariableForUser
function deleteVariableForUser(string selectedUser, string variableUuid, map<string|string[]> headers) returns error?Delete a variable for a user
Parameters
- selectedUser string - Either the UUID of the account surrounded by curly-braces, for example
{account UUID}, OR an Atlassian Account ID
- variableUuid string - The UUID of the variable to delete
Return Type
- error? - The variable was deleted
Deprecated
getUserApplicationProperty
function getUserApplicationProperty(string selectedUser, string appKey, string propertyName, map<string|string[]> headers) returns ApplicationProperty|errorGet a user application property
Parameters
- selectedUser string - Either the UUID of the account surrounded by curly-braces, for example
{account UUID}, OR an Atlassian Account ID
- appKey string - The key of the Connect app
- propertyName string - The name of the property
Return Type
- ApplicationProperty|error - The value of the property
Deprecated
updateUserApplicationProperty
function updateUserApplicationProperty(string selectedUser, string appKey, string propertyName, ApplicationProperty payload, map<string|string[]> headers) returns error?Update a user application property
Parameters
- selectedUser string - Either the UUID of the account surrounded by curly-braces, for example
{account UUID}, OR an Atlassian Account ID
- appKey string - The key of the Connect app
- propertyName string - The name of the property
- payload ApplicationProperty - The application property to create or update
Return Type
- error? - An empty response
Deprecated
deleteUserApplicationProperty
function deleteUserApplicationProperty(string selectedUser, string appKey, string propertyName, map<string|string[]> headers) returns error?Delete a user application property
Parameters
- selectedUser string - Either the UUID of the account surrounded by curly-braces, for example
{account UUID}, OR an Atlassian Account ID
- appKey string - The key of the Connect app
- propertyName string - The name of the property
Return Type
- error? - An empty response
Deprecated
searchCodeInUserRepositories
function searchCodeInUserRepositories(string selectedUser, map<string|string[]> headers, *SearchCodeInUserRepositoriesQueries queries) returns SearchResultPage|errorSearch for code in a user's repositories
Parameters
- selectedUser string - Either the UUID of the account surrounded by curly-braces, for example
{account UUID}, OR an Atlassian Account ID
- queries *SearchCodeInUserRepositoriesQueries - Queries to be sent with the request
Return Type
- SearchResultPage|error - Successful search
Deprecated
listSshKeys
function listSshKeys(string selectedUser, map<string|string[]> headers) returns PaginatedSshUserKeys|errorList SSH keys
Parameters
- selectedUser string - This can either be an Atlassian Account ID OR the UUID of the account,
surrounded by curly-braces, for example:
{account UUID}
Return Type
- PaginatedSshUserKeys|error - A list of the SSH keys associated with the account
addNewSshKey
function addNewSshKey(string selectedUser, SshAccountKey payload, map<string|string[]> headers, *AddNewSshKeyQueries queries) returns SshAccountKey|errorAdd a new SSH key
Parameters
- selectedUser string - This can either be an Atlassian Account ID OR the UUID of the account,
surrounded by curly-braces, for example:
{account UUID}
- payload SshAccountKey - The new SSH key object. Note that the username property has been deprecated due to privacy changes
- queries *AddNewSshKeyQueries - Queries to be sent with the request
Return Type
- SshAccountKey|error - The newly created SSH key
getSshKey
function getSshKey(string keyId, string selectedUser, map<string|string[]> headers) returns SshAccountKey|errorGet a SSH key
Parameters
- keyId string - The SSH key's UUID value
- selectedUser string - This can either be an Atlassian Account ID OR the UUID of the account,
surrounded by curly-braces, for example:
{account UUID}
Return Type
- SshAccountKey|error - The specific SSH key matching the user and UUID
updateSshKey
function updateSshKey(string keyId, string selectedUser, SshAccountKey payload, map<string|string[]> headers) returns SshAccountKey|errorUpdate a SSH key
Parameters
- keyId string - The SSH key's UUID value
- selectedUser string - This can either be an Atlassian Account ID OR the UUID of the account,
surrounded by curly-braces, for example:
{account UUID}
- payload SshAccountKey - The updated SSH key object
Return Type
- SshAccountKey|error - The newly updated SSH key
deleteSshKey
function deleteSshKey(string keyId, string selectedUser, map<string|string[]> headers) returns error?Delete a SSH key
Parameters
- keyId string - The SSH key's UUID value
- selectedUser string - This can either be an Atlassian Account ID OR the UUID of the account,
surrounded by curly-braces, for example:
{account UUID}
Return Type
- error? - The key has been deleted
getWorkspace
Get a workspace
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
listWebhooksForWorkspace
function listWebhooksForWorkspace(string workspace, map<string|string[]> headers) returns PaginatedWebhookSubscriptions|errorList webhooks for a workspace
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- PaginatedWebhookSubscriptions|error - The paginated list of installed webhooks
createWebhookForWorkspace
function createWebhookForWorkspace(string workspace, map<string|string[]> headers) returns WebhookSubscription|errorCreate a webhook for a workspace
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- WebhookSubscription|error - If the webhook was registered successfully
getWebhookForWorkspace
function getWebhookForWorkspace(string uid, string workspace, map<string|string[]> headers) returns WebhookSubscription|errorGet a webhook for a workspace
Parameters
- uid string - Installed webhook's ID
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- WebhookSubscription|error - The webhook subscription object
updateWebhookForWorkspace
function updateWebhookForWorkspace(string uid, string workspace, map<string|string[]> headers) returns WebhookSubscription|errorUpdate a webhook for a workspace
Parameters
- uid string - Installed webhook's ID
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- WebhookSubscription|error - The webhook subscription object
deleteWebhookForWorkspace
function deleteWebhookForWorkspace(string uid, string workspace, map<string|string[]> headers) returns error?Delete a webhook for a workspace
Parameters
- uid string - Installed webhook's ID
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - When the webhook was deleted successfully
listUsersInWorkspace
function listUsersInWorkspace(string workspace, map<string|string[]> headers) returns PaginatedWorkspaceMemberships|errorList users in a workspace
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- PaginatedWorkspaceMemberships|error - The list of users that are part of a workspace
getUserMembershipForWorkspace
function getUserMembershipForWorkspace(string member, string workspace, map<string|string[]> headers) returns WorkspaceMembership|errorGet user membership for a workspace
Parameters
- member string - Member's UUID or Atlassian ID
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- WorkspaceMembership|error - The user that is part of a workspace
listUserPermissionsInWorkspace
function listUserPermissionsInWorkspace(string workspace, map<string|string[]> headers, *ListUserPermissionsInWorkspaceQueries queries) returns PaginatedWorkspaceMemberships|errorList user permissions in a workspace
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- queries *ListUserPermissionsInWorkspaceQueries - Queries to be sent with the request
Return Type
- PaginatedWorkspaceMemberships|error - The list of users that are part of a workspace, along with their permission
listWorkspaceRepoPermissions
function listWorkspaceRepoPermissions(string workspace, map<string|string[]> headers, *ListWorkspaceRepoPermissionsQueries queries) returns PaginatedRepositoryPermissions|errorList all repository permissions for a workspace
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- queries *ListWorkspaceRepoPermissionsQueries - Queries to be sent with the request
Return Type
- PaginatedRepositoryPermissions|error - List of workspace's repository permissions
listRepositoryPermissionsForWorkspace
function listRepositoryPermissionsForWorkspace(string repoSlug, string workspace, map<string|string[]> headers, *ListRepositoryPermissionsForWorkspaceQueries queries) returns PaginatedRepositoryPermissions|errorList a repository permissions for a workspace
Parameters
- repoSlug string - This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example:
{repository UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- queries *ListRepositoryPermissionsForWorkspaceQueries - Queries to be sent with the request
Return Type
- PaginatedRepositoryPermissions|error - The repository permission for all users in this repository
getPipelinesOidcConfiguration
function getPipelinesOidcConfiguration(string workspace, map<string|string[]> headers) returns error?Get OpenID configuration for OIDC in Pipelines
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
Return Type
- error? - The OpenID configuration
getKeysForOidcInPipelines
Get keys for OIDC in Pipelines
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
Return Type
- error? - The keys in JSON web key format
listWorkspaceRunners
function listWorkspaceRunners(string workspace, map<string|string[]> headers) returns PaginatedPipelineRunners|errorGet workspace runners
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
Return Type
- PaginatedPipelineRunners|error - The workspace runners
createWorkspaceRunner
function createWorkspaceRunner(string workspace, map<string|string[]> headers) returns PipelineRunner|errorCreate workspace runner
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
Return Type
- PipelineRunner|error - The workspace runner
getWorkspaceRunnerByUuid
function getWorkspaceRunnerByUuid(string workspace, string runnerUuid, map<string|string[]> headers) returns PipelineRunner|errorGet workspace runner
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- runnerUuid string - The runner uuid
Return Type
- PipelineRunner|error - The workspace runner
updateWorkspaceRunner
function updateWorkspaceRunner(string workspace, string runnerUuid, map<string|string[]> headers) returns PipelineRunner|errorUpdate workspace runner
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- runnerUuid string - The runner uuid
Return Type
- PipelineRunner|error - The workspace runner
deleteWorkspaceRunner
function deleteWorkspaceRunner(string workspace, string runnerUuid, map<string|string[]> headers) returns error?Delete workspace runner
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- runnerUuid string - The runner uuid
Return Type
- error? - The workspace runner was deleted
listVariablesForWorkspace
function listVariablesForWorkspace(string workspace, map<string|string[]> headers) returns PaginatedPipelineVariables|errorList variables for a workspace
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
Return Type
- PaginatedPipelineVariables|error - The found workspace level variables
createVariableForWorkspace
function createVariableForWorkspace(string workspace, PipelineVariable payload, map<string|string[]> headers) returns PipelineVariable|errorCreate a variable for a workspace
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- payload PipelineVariable - The variable to create
Return Type
- PipelineVariable|error - The created variable
getVariableForWorkspace
function getVariableForWorkspace(string workspace, string variableUuid, map<string|string[]> headers) returns PipelineVariable|errorGet variable for a workspace
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- variableUuid string - The UUID of the variable to retrieve
Return Type
- PipelineVariable|error - The variable
updateVariableForWorkspace
function updateVariableForWorkspace(string workspace, string variableUuid, PipelineVariable payload, map<string|string[]> headers) returns PipelineVariable|errorUpdate variable for a workspace
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- variableUuid string - The UUID of the variable
- payload PipelineVariable - The updated variable
Return Type
- PipelineVariable|error - The variable was updated
deleteVariableForWorkspace
function deleteVariableForWorkspace(string workspace, string variableUuid, map<string|string[]> headers) returns error?Delete a variable for a workspace
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example
{workspace UUID}
- variableUuid string - The UUID of the variable to delete
Return Type
- error? - The variable was deleted
listProjectsInWorkspace
function listProjectsInWorkspace(string workspace, map<string|string[]> headers) returns PaginatedProjects|errorList projects in a workspace
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- PaginatedProjects|error - The list of projects in this workspace
createProjectInWorkspace
function createProjectInWorkspace(string workspace, Project payload, map<string|string[]> headers) returns Project|errorCreate a project in a workspace
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- payload Project - Request payload containing the project to submit
getProjectForWorkspace
function getProjectForWorkspace(string projectKey, string workspace, map<string|string[]> headers) returns Project|errorGet a project for a workspace
Parameters
- projectKey string - The project in question. This is the actual
keyassigned to the project
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
updateProjectForWorkspace
function updateProjectForWorkspace(string projectKey, string workspace, Project payload, map<string|string[]> headers) returns Project|errorUpdate a project for a workspace
Parameters
- projectKey string - The project in question. This is the actual
keyassigned to the project
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- payload Project - Request payload containing the project to submit
deleteProjectForWorkspace
function deleteProjectForWorkspace(string projectKey, string workspace, map<string|string[]> headers) returns error?Delete a project for a workspace
Parameters
- projectKey string - The project in question. This is the actual
keyassigned to the project
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - Successful deletion
getBranchingModelForProject
function getBranchingModelForProject(string projectKey, string workspace, map<string|string[]> headers) returns ProjectBranchingModel|errorGet the branching model for a project
Parameters
- projectKey string - The project in question. This is the actual
keyassigned to the project
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- ProjectBranchingModel|error - The branching model object
getBranchingModelConfigForProject
function getBranchingModelConfigForProject(string projectKey, string workspace, map<string|string[]> headers) returns BranchingModelSettings|errorGet the branching model config for a project
Parameters
- projectKey string - The project in question. This is the actual
keyassigned to the project
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- BranchingModelSettings|error - The branching model configuration
updateBranchingModelConfigForProject
function updateBranchingModelConfigForProject(string projectKey, string workspace, map<string|string[]> headers) returns BranchingModelSettings|errorUpdate the branching model config for a project
Parameters
- projectKey string - The project in question. This is the actual
keyassigned to the project
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- BranchingModelSettings|error - The updated branching model configuration
listDefaultReviewersInProject
function listDefaultReviewersInProject(string projectKey, string workspace, map<string|string[]> headers) returns PaginatedDefaultReviewerAndType|errorList the default reviewers in a project
Parameters
- projectKey string - The project in question. This is the actual
keyassigned to the project
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- PaginatedDefaultReviewerAndType|error - The list of project default reviewers
getProjectDefaultReviewer
function getProjectDefaultReviewer(string projectKey, string selectedUser, string workspace, map<string|string[]> headers) returns User|errorGet a project default reviewer
Parameters
- projectKey string - The project in question. This can either be the actual
keyassigned to the project or theUUID(surrounded by curly-braces ({}))
- selectedUser string - This can either be the username or the UUID of the default reviewer,
surrounded by curly-braces, for example:
{account UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
addProjectDefaultReviewer
function addProjectDefaultReviewer(string projectKey, string selectedUser, string workspace, map<string|string[]> headers) returns User|errorAdd the specific user as a default reviewer for the project
Parameters
- projectKey string - The project in question. This can either be the actual
keyassigned to the project or theUUID(surrounded by curly-braces ({}))
- selectedUser string - This can either be the username or the UUID of the default reviewer,
surrounded by curly-braces, for example:
{account UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
removeProjectDefaultReviewer
function removeProjectDefaultReviewer(string projectKey, string selectedUser, string workspace, map<string|string[]> headers) returns error?Remove the specific user from the project's default reviewers
Parameters
- projectKey string - The project in question. This can either be the actual
keyassigned to the project or theUUID(surrounded by curly-braces ({}))
- selectedUser string - This can either be the username or the UUID of the default reviewer,
surrounded by curly-braces, for example:
{account UUID}
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - The specified user was removed from the list of project default reviewers
listProjectDeployKeys
function listProjectDeployKeys(string projectKey, string workspace, map<string|string[]> headers) returns PaginatedProjectDeployKeys|errorList project deploy keys
Parameters
- projectKey string - The project in question. This is the actual
keyassigned to the project
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- PaginatedProjectDeployKeys|error - Deploy keys matching the project
createProjectDeployKey
function createProjectDeployKey(string projectKey, string workspace, map<string|string[]> headers) returns ProjectDeployKey|errorCreate a project deploy key
Parameters
- projectKey string - The project in question. This is the actual
keyassigned to the project
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- ProjectDeployKey|error - The project deploy key that was created
getProjectDeployKey
function getProjectDeployKey(string keyId, string projectKey, string workspace, map<string|string[]> headers) returns ProjectDeployKey|errorGet a project deploy key
Parameters
- keyId string - The key ID matching the project deploy key
- projectKey string - The project in question. This is the actual
keyassigned to the project
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- ProjectDeployKey|error - Project deploy key matching the key ID
deleteDeployKeyFromProject
function deleteDeployKeyFromProject(string keyId, string projectKey, string workspace, map<string|string[]> headers) returns error?Delete a deploy key from a project
Parameters
- keyId string - The key ID matching the project deploy key
- projectKey string - The project in question. This is the actual
keyassigned to the project
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - The project deploy key has been deleted
listGroupPermissionsForProject
function listGroupPermissionsForProject(string projectKey, string workspace, map<string|string[]> headers) returns PaginatedProjectGroupPermissions|errorList explicit group permissions for a project
Parameters
- projectKey string - The project in question. This is the actual key assigned to the project
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- PaginatedProjectGroupPermissions|error - Paginated list of project group permissions
getGroupPermissionForProject
function getGroupPermissionForProject(string groupSlug, string projectKey, string workspace, map<string|string[]> headers) returns ProjectGroupPermission|errorGet an explicit group permission for a project
Parameters
- groupSlug string - Slug of the requested group
- projectKey string - The project in question. This is the actual key assigned to the project
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- ProjectGroupPermission|error - Project group permission
updateGroupPermissionForProject
function updateGroupPermissionForProject(string groupSlug, string projectKey, string workspace, ProjectPermissionUpdate payload, map<string|string[]> headers) returns ProjectGroupPermission|errorUpdate an explicit group permission for a project
Parameters
- groupSlug string - Slug of the requested group
- projectKey string - The project in question. This is the actual key assigned to the project
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- payload ProjectPermissionUpdate - The permission to grant
Return Type
- ProjectGroupPermission|error - Project group permission updated
deleteGroupPermissionForProject
function deleteGroupPermissionForProject(string groupSlug, string projectKey, string workspace, map<string|string[]> headers) returns error?Delete an explicit group permission for a project
Parameters
- groupSlug string - Slug of the requested group
- projectKey string - The project in question. This is the actual key assigned to the project
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - The project group permission was deleted and no content returned
listUserPermissionsForProject
function listUserPermissionsForProject(string projectKey, string workspace, map<string|string[]> headers) returns PaginatedProjectUserPermissions|errorList explicit user permissions for a project
Parameters
- projectKey string - The project in question. This is the actual key assigned to the project
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- PaginatedProjectUserPermissions|error - Paginated list of explicit user permissions
getUserPermissionForProject
function getUserPermissionForProject(string projectKey, string selectedUserId, string workspace, map<string|string[]> headers) returns ProjectUserPermission|errorGet an explicit user permission for a project
Parameters
- projectKey string - The project in question. This is the actual key assigned to the project
- selectedUserId string - This can either be the username, the user's UUID surrounded by curly-braces, for example: {account UUID}, or the user's Atlassian ID
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- ProjectUserPermission|error - Explicit user permission for user and project
updateUserPermissionForProject
function updateUserPermissionForProject(string projectKey, string selectedUserId, string workspace, ProjectPermissionUpdate payload, map<string|string[]> headers) returns ProjectUserPermission|errorUpdate an explicit user permission for a project
Parameters
- projectKey string - The project in question. This is the actual key assigned to the project
- selectedUserId string - This can either be the username, the user's UUID surrounded by curly-braces, for example: {account UUID}, or the user's Atlassian ID
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- payload ProjectPermissionUpdate - The permission to grant
Return Type
- ProjectUserPermission|error - Explicit user permission updated
deleteUserPermissionForProject
function deleteUserPermissionForProject(string projectKey, string selectedUserId, string workspace, map<string|string[]> headers) returns error?Delete an explicit user permission for a project
Parameters
- projectKey string - The project in question. This is the actual key assigned to the project
- selectedUserId string - This can either be the username, the user's UUID surrounded by curly-braces, for example: {account UUID}, or the user's Atlassian ID
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - The project user permission was deleted and no content returned
listWorkspacePullRequestsForUser
function listWorkspacePullRequestsForUser(string selectedUser, string workspace, map<string|string[]> headers, *ListWorkspacePullRequestsForUserQueries queries) returns PaginatedPullrequests|errorList workspace pull requests for a user
Parameters
- selectedUser string - This can either be the username of the pull request author, the author's UUID
surrounded by curly-braces, for example:
{account UUID}, or the author's Atlassian ID
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
- queries *ListWorkspacePullRequestsForUserQueries - Queries to be sent with the request
Return Type
- PaginatedPullrequests|error - All pull requests authored by the specified user
searchForCodeInWorkspace
function searchForCodeInWorkspace(string workspace, map<string|string[]> headers, *SearchForCodeInWorkspaceQueries queries) returns SearchResultPage|errorSearch for code in a workspace
Parameters
- workspace string - The workspace to search in; either the slug or the UUID in curly braces
- queries *SearchForCodeInWorkspaceQueries - Queries to be sent with the request
Return Type
- SearchResultPage|error - Successful search
Deprecated
getWorkspaceSystemGpgPublicKey
function getWorkspaceSystemGpgPublicKey(string workspace, map<string|string[]> headers) returns error?Get the workspace system GPG public key(s)
Parameters
- workspace string - This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example:
{workspace UUID}
Return Type
- error? - The system public GPG key(s)
Records
bitbucket: Account
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- links? AccountLinks - Hypermedia links related to the account.
- created_on? string - Timestamp of the created on of the account.
- display_name? string - The display name of the account.
- uuid? string - Universally unique identifier of the account.
bitbucket: AccountLinks
Links related to an Account
Fields
- avatar? Link1 - The avatar of the account links.
bitbucket: AddNewSshKeyQueries
Represents the Queries record for the operation: addNewSshKey
Fields
bitbucket: ApiKeysConfig
Provides API key configurations needed when communicating with a remote HTTP endpoint.
Fields
- authorization string - API Keys can be used as Basic HTTP Authentication credentials and provide a substitute for the account's actual username and password. API Keys are only available to team accounts and there is only 1 key per account. API Keys do not support scopes and have therefore access to all contents of the account.
bitbucket: ApplicationProperty
An application property. It is a caller defined JSON object that Bitbucket will store and return.
The _attributes field at its top level can be used to control who is allowed to read and update the property.
The keys of the JSON object must match an allowed pattern. For details,
see Application properties
Fields
- _attributes? ("public"|"read_only")[] - List of attributes of the application property.
bitbucket: Author
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- raw? string - The raw author value from the repository. This may be the only value available if the author does not match a user in Bitbucket.
- user? Account - The user associated with the author.
bitbucket: BaseCommit
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- hash? string - The hash of the base commit.
- date? string - Timestamp of the date of the base commit.
- author? Author - The author of the base commit.
- committer? Committer - The committer of the base commit.
- message? string - The message of the base commit.
- summary? BaseCommit_summary - The summary of the base commit.
- parents? BaseCommit[] - List of parents of the base commit.
bitbucket: BaseCommit_summary
The summary of the base commit.
Fields
- markup? "markdown"|"creole"|"plaintext" - The type of markup language the raw content is to be interpreted in.
- raw? string - The text as it was typed by a user.
- html? string - The user's content rendered as HTML.
bitbucket: Branch
Fields
- Fields Included from *Ref
- merge_strategies? ("merge_commit"|"squash"|"fast_forward"|"squash_fast_forward"|"rebase_fast_forward"|"rebase_merge")[] - Available merge strategies for pull requests targeting this branch.
- default_merge_strategy? string - The default merge strategy for pull requests targeting this branch.
bitbucket: BranchingModel
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- branch_types? EffectiveRepoBranchingModel_branch_types[] - The active branch types.
- development? BranchingModel_development - The development of the branching model.
- production? BranchingModel_production - The production of the branching model.
bitbucket: BranchingModel_development
The development of the branching model.
Fields
- name string - Name of the target branch. Will be listed here even when the target branch does not exist. Will be
nullif targeting the main branch and the repository is empty.
- useMainbranch boolean - Indicates if the setting points at an explicit branch (
false) or tracks the main branch (true).
- branch? Branch - The branch used as the development branch.
bitbucket: BranchingModel_production
The production of the branching model.
Fields
- name string - Name of the target branch. Will be listed here even when the target branch does not exist. Will be
nullif targeting the main branch and the repository is empty.
- useMainbranch boolean - Indicates if the setting points at an explicit branch (
false) or tracks the main branch (true).
- branch? Branch - The branch used as the production branch.
bitbucket: BranchingModelSettings
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- links? BranchingModelSettings_links - Hypermedia links related to the branching model settings.
- branch_types? BranchingModelSettings_branch_types[] - List of branch types of the branching model settings.
- development? BranchingModelSettings_development - The development of the branching model settings.
- production? BranchingModelSettings_production - The production of the branching model settings.
bitbucket: BranchingModelSettings_branch_types
Fields
- kind "feature"|"bugfix"|"release"|"hotfix" - The kind of the branch type.
- prefix? string - The prefix for this branch type. A branch with this prefix will be classified as per
kind. Theprefixof an enabled branch type must be a valid branch prefix.Additionally, it cannot be blank, empty ornull. Theprefixfor a disabled branch type can be empty or invalid.
- enabled? boolean - Whether the branch type is enabled or not. A disabled branch type may contain an invalid
prefix.
bitbucket: BranchingModelSettings_development
The development of the branching model settings.
Fields
- isValid? boolean - Indicates if the configured branch is valid, that is, if the configured branch actually exists currently. Is always
truewhenuse_mainbranchistrue(even if the main branch does not exist). This field is read-only. This field is ignored when updating/creating settings.
- name? string - The configured branch. It must be
nullwhenuse_mainbranchistrue. Otherwise it must be a non-empty value. It is possible for the configured branch to not exist (e.g. it was deleted after the settings are set). In this caseis_validwill befalse. The branch must exist when updating/setting thenameor an error will occur.
- useMainbranch? boolean - Indicates if the setting points at an explicit branch (
false) or tracks the main branch (true). Whentruethenamemust benullor not provided. Whenfalsethenamemust contain a non-empty branch name.
bitbucket: BranchingModelSettings_links
Hypermedia links related to the branching model settings.
Fields
- self? Link_1 - A link to a resource related to this object.
bitbucket: BranchingModelSettings_production
The production of the branching model settings.
Fields
- isValid? boolean - Indicates if the configured branch is valid, that is, if the configured branch actually exists currently. Is always
truewhenuse_mainbranchistrue(even if the main branch does not exist). This field is read-only. This field is ignored when updating/creating settings.
- name? string - The configured branch. It must be
nullwhenuse_mainbranchistrue. Otherwise it must be a non-empty value. It is possible for the configured branch to not exist (e.g. it was deleted after the settings are set). In this caseis_validwill befalse. The branch must exist when updating/setting thenameor an error will occur.
- useMainbranch? boolean - Indicates if the setting points at an explicit branch (
false) or tracks the main branch (true). Whentruethenamemust benullor not provided. Whenfalsethenamemust contain a non-empty branch name.
- enabled? boolean - Indicates if branch is enabled or not.
bitbucket: BranchRestriction
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- links? BranchRestriction_links - Hypermedia links related to the branch restriction.
- id? int - The branch restriction status' id.
- kind "push"|"delete"|"force"|"restrict_merges"|"require_tasks_to_be_completed"|"require_approvals_to_merge"|"require_review_group_approvals_to_merge"|"require_default_reviewer_approvals_to_merge"|"require_no_changes_requested"|"require_passing_builds_to_merge"|"require_commits_behind"|"reset_pullrequest_approvals_on_change"|"smart_reset_pullrequest_approvals"|"reset_pullrequest_changes_requested_on_change"|"require_all_dependencies_merged"|"enforce_merge_checks"|"allow_auto_merge_when_builds_pass"|"require_all_comments_resolved" - The type of restriction that is being applied.
- branch_match_kind "branching_model"|"glob" - Indicates how the restriction is matched against a branch. The default is
glob.
- branch_type? "feature"|"bugfix"|"release"|"hotfix"|"development"|"production" - Apply the restriction to branches of this type. Active when
branch_match_kindisbranching_model. The branch type will be calculated using the branching model configured for the repository.
- pattern string - Apply the restriction to branches that match this pattern. Active when
branch_match_kindisglob. Will be empty whenbranch_match_kindisbranching_model.
- pipelines_source_branches? string[] - List of source branch names allowed to push back to the restricted branch. Used in conjunction with pipeline-based restrictions.
- value? int - Value with kind-specific semantics:
-
require_approvals_to_mergeuses it to require a minimum number of approvals on a PR. -
require_default_reviewer_approvals_to_mergeuses it to require a minimum number of approvals from default reviewers on a PR. -
require_passing_builds_to_mergeuses it to require a minimum number of passing builds. -
require_commits_behinduses it to require the current branch is up to a maximum number of commits behind it destination.
-
- users? Account[] - List of users of the branch restriction.
- groups? Group[] - List of groups of the branch restriction.
bitbucket: BranchRestriction_links
Hypermedia links related to the branch restriction.
Fields
- self? Link_1 - A link to a resource related to this object.
bitbucket: ClearRepoCachesQueries
Represents the Queries record for the operation: clearRepoCaches
Fields
- name string - The cache name
bitbucket: Comment
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- id? int - Unique numeric identifier of the comment.
- created_on? string - Timestamp of the created on of the comment.
- updated_on? string - Timestamp of the updated on of the comment.
- content? Comment_content - The content of the comment.
- user? Account - The user associated with the comment.
- deleted? boolean - Indicates whether the comment has deleted.
- parent? Comment - The parent of the comment.
- inline? Comment_inline - The inline of the comment.
- links? Comment_links - Hypermedia links related to the comment.
bitbucket: Comment_content
The content of the comment.
Fields
- markup? "markdown"|"creole"|"plaintext" - The type of markup language the raw content is to be interpreted in.
- raw? string - The text as it was typed by a user.
- html? string - The user's content rendered as HTML.
bitbucket: Comment_inline
The inline of the comment.
Fields
- path string - The path of the file this comment is anchored to.
- startFrom? int - The starting line number in the old version of the file, if the comment is a multi-line comment. This is null otherwise.
- startTo? int - The starting line number in the new version of the file, if the comment is a multi-line comment. This is null otherwise.
- 'from? int - The comment's anchor line in the old version of the file. If the comment is a multi-line comment, this is the ending line number in the old version of the file.
- to? int - The comment's anchor line in the new version of the file. If the comment is a multi-line comment, this is the ending line number in the new version of the file.
bitbucket: Comment_links
Hypermedia links related to the comment.
Fields
- code? Link_1 - A link to a resource related to this object.
- self? Link_1 - A link to a resource related to this object.
- html? Link_1 - A link to a resource related to this object.
bitbucket: CommentResolution
The resolution object for a Comment
Fields
- 'type string - Discriminator that identifies the type of this object.
- user? Account - The user associated with the comment resolution.
- created_on? string - The ISO8601 timestamp the resolution was created.
bitbucket: Commit
Fields
- Fields Included from *BaseCommit
- hash string
- date string
- author Author
- committer Committer
- message string
- summary BaseCommit_summary
- parents BaseCommit[]
- type string
- anydata...
- repository? Repository - The repository of the commit.
- participants? Participant[] - List of participants of the commit.
bitbucket: CommitComment
Fields
- Fields Included from *Comment
- id int
- created_on string
- updated_on string
- content Comment_content
- user Account
- deleted boolean
- parent Comment
- inline Comment_inline
- links Comment_links
- type string
- anydata...
- 'commit? Commit - The commit of the commit comment.
bitbucket: CommitFile
A file object, representing a file at a commit in a repository
Fields
- 'type string - Discriminator that identifies the type of this object.
- path? string - The path in the repository
- 'commit? Commit - The commit of the commit file.
- attributes? "link"|"executable"|"subrepository"|"binary"|"lfs" - The attributes of the commit file.
- escaped_path? string - The escaped version of the path as it appears in a diff. If the path does not require escaping this will be the same as path.
bitbucket: Commitstatus
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- links? Commitstatus_links - Hypermedia links related to the commitstatus.
- 'key string - An identifier for the status that's unique to its type (current "build" is the only supported type) and the vendor, e.g. BB-DEPLOY
- refname? string - The name of the ref that pointed to this commit at the time the status object was created. Note that this the ref may since have moved off of the commit. This optional field can be useful for build systems whose build triggers and configuration are branch-dependent (e.g. a Pipeline build). It is legitimate for this field to not be set, or even apply (e.g. a static linting job).
- url? string - A URL linking back to the vendor or build system, for providing more information about whatever process produced this status. Accepts context variables
repositoryandcommitthat Bitbucket will evaluate at runtime whenever at runtime. For example, one could use https://foo.com/builds/{repository.full_name} which Bitbucket will turn into https://foo.com/builds/foo/bar at render time.
- state "FAILED"|"INPROGRESS"|"STOPPED"|"SUCCESSFUL" - Provides some indication of the status of this commit
- name? string - An identifier for the build itself, e.g. BB-DEPLOY-1
- description? string - A description of the build (e.g. "Unit tests in Bamboo")
- created_on? string - Timestamp of the created on of the commitstatus.
- updated_on? string - Timestamp of the updated on of the commitstatus.
bitbucket: Commitstatus_links
Hypermedia links related to the commitstatus.
Fields
- 'commit? Link_1 - A link to a resource related to this object.
- self? Link_1 - A link to a resource related to this object.
bitbucket: Committer
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- raw? string - The raw committer value from the repository. This may be the only value available if the committer does not match a user in Bitbucket.
- user? Account - The user associated with the committer.
bitbucket: CompareTwoCommitDiffStatsQueries
Represents the Queries record for the operation: compareTwoCommitDiffStats
Fields
- path? string - Limit the diffstat to a particular file (this parameter can be repeated for multiple paths)
- ignoreWhitespace? boolean - Generate diffs that ignore whitespace
- merge? boolean - This parameter is deprecated. The 'topic' parameter should be used instead. The 'merge' and 'topic' parameters cannot be both used at the same time. If true, the source commit is merged into the destination commit, and then a diffstat from the destination to the merge result is returned. If false, a simple 'two dot' diffstat between the source and destination is returned. True if omitted
- topic? boolean - If true, returns 2-way 'three-dot' diff. This is a diff between the source commit and the merge base of the source commit and the destination commit. If false, a simple 'two dot' diff between the source and destination is returned
- renames? boolean - Whether to perform rename detection, true if omitted
bitbucket: CompareTwoCommitsQueries
Represents the Queries record for the operation: compareTwoCommits
Fields
- path? string - Limit the diff to a particular file (this parameter can be repeated for multiple paths)
- ignoreWhitespace? boolean - Generate diffs that ignore whitespace
- binary? boolean - Generate diffs that include binary files, true if omitted
- merge? boolean - This parameter is deprecated. The 'topic' parameter should be used instead. The 'merge' and 'topic' parameters cannot be both used at the same time. If true, the source commit is merged into the destination commit, and then a diff from the destination to the merge result is returned. If false, a simple 'two dot' diff between the source and destination is returned. True if omitted
- context? int - Generate diffs with <n> lines of context instead of the usual three
- topic? boolean - If true, returns 2-way 'three-dot' diff. This is a diff between the source commit and the merge base of the source commit and the destination commit. If false, a simple 'two dot' diff between the source and destination is returned. If omitted, defaults to true, ie. a 2 way 'three-dot' diff is returned
- renames? boolean - Whether to perform rename detection, true if omitted
bitbucket: ConnectionConfig
Provides a set of configurations for controlling the behaviours when communicating with a remote HTTP endpoint.
Fields
- auth BearerTokenConfig|OAuth2RefreshTokenGrantConfig|CredentialsConfig|ApiKeysConfig - Provides Auth configurations needed when communicating with a remote HTTP endpoint.
- httpVersion HttpVersion(default http:HTTP_2_0) - The HTTP version understood by the client
- http1Settings ClientHttp1Settings(default {}) - Configurations related to HTTP/1.x protocol
- http2Settings ClientHttp2Settings(default {}) - Configurations related to HTTP/2 protocol
- timeout decimal(default 30) - The maximum time to wait (in seconds) for a response before closing the connection
- forwarded string(default "disable") - The choice of setting
forwarded/x-forwardedheader
- followRedirects? FollowRedirects - Configurations associated with Redirection
- poolConfig? PoolConfiguration - Configurations associated with request pooling
- cache CacheConfig(default {}) - HTTP caching related configurations
- compression Compression(default http:COMPRESSION_AUTO) - Specifies the way of handling compression (
accept-encoding) header
- circuitBreaker? CircuitBreakerConfig - Configurations associated with the behaviour of the Circuit Breaker
- retryConfig? RetryConfig - Configurations associated with retrying
- cookieConfig? CookieConfig - Configurations associated with cookies
- responseLimits ResponseLimitConfigs(default {}) - Configurations associated with inbound response size limits
- secureSocket? ClientSecureSocket - SSL/TLS-related options
- proxy? ProxyConfig - Proxy server related options
- socketConfig ClientSocketConfig(default {}) - Provides settings related to client socket configuration
- validation boolean(default true) - Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
- laxDataBinding boolean(default true) - Enables relaxed data binding on the client side. When enabled,
nilvalues are treated as optional, and absent fields are handled asnilabletypes. Enabled by default.
bitbucket: CreateCommitByUploadingFileQueries
Represents the Queries record for the operation: createCommitByUploadingFile
Fields
- author? string - The raw string to be used as the new commit's author.
This string follows the format
Erik van Zijst <evzijst@atlassian.com>. When omitted, Bitbucket uses the authenticated user's full/display name and primary email address. Commits cannot be created anonymously
- files? string - Optional field that declares the files that the request is
manipulating. When adding a new file to a repo, or when
overwriting an existing file, the client can just upload
the full contents of the file in a normal form field and
the use of this
filesmeta data field is redundant. However, when thefilesfield contains a file path that does not have a corresponding, identically-named form field, then Bitbucket interprets that as the client wanting to replace the named file with the null set and the file is deleted instead. Paths in the repo that are referenced in neither files nor an individual file field, remain unchanged and carry over from the parent to the new commit. This API does not support renaming as an explicit feature. To rename a file, simply delete it and recreate it under the new name in the same commit
- message? string - The commit message. When omitted, Bitbucket uses a canned string
- branch? string - The name of the branch that the new commit should be
created on. When omitted, the commit will be created on top
of the main branch and will become the main branch's new
head.
When a branch name is provided that already exists in the
repo, then the commit will be created on top of that
branch. In this case, if a parent SHA1 was also provided,
then it is asserted that the parent is the branch's
tip/HEAD at the time the request is made. When this is not
the case, a 409 is returned.
When a new branch name is specified (that does not already
exist in the repo), and no parent SHA1s are provided, then
the new commit will inherit from the current main branch's
tip/HEAD commit, but not advance the main branch. The new
commit will be the new branch. When the request also
specifies a parent SHA1, then the new commit and branch
are created directly on top of the parent commit,
regardless of the state of the main branch.
When a branch name is not specified, but a parent SHA1 is
provided, then Bitbucket asserts that it represents the
main branch's current HEAD/tip, or a 409 is returned.
When a branch name is not specified and the repo is empty,
the new commit will become the repo's root commit and will
be on the main branch.
When a branch name is specified and the repo is empty, the
new commit will become the repo's root commit and also
define the repo's main branch going forward.
This API cannot be used to create additional root commits
in non-empty repos.
The branch field cannot be repeated.
As a side effect, this API can be used to create a new
branch without modifying any files, by specifying a new
branch name in this field, together with
parents, but omitting thefilesfields, while not sending any files. This will create a new commit and branch with the same contents as the first parent. The diff of this commit against its first parent will be empty
- parents? string -
Deprecation Notice:
Support for specifying multiple parent commits is deprecated and will be removed in a future release. Only a single SHA1 is accepted. A SHA1 of the commit that should be the parent of the newly created commit. When omitted, the new commit will inherit from and become a child of the main branch's tip/HEAD commit
bitbucket: DefaultReviewerAndType
Object containing a user that is a default reviewer and the type of reviewer
Fields
- 'type string - Discriminator that identifies the type of this object.
- reviewer_type? string - The reviewer type of the default reviewer and type.
- user? User - The user associated with the default reviewer and type.
bitbucket: DeleteRepositoryQueries
Represents the Queries record for the operation: deleteRepository
Fields
- redirect_to? string - If a repository has been moved to a new location, use this parameter to show users a friendly message in the Bitbucket UI that the repository has moved to a new location. However, a GET to this endpoint will still return a 404
bitbucket: DeployKey
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- 'key? string - The deploy key value.
- repository? Repository - The repository of the deploy key.
- comment? string - The comment parsed from the deploy key (if present)
- label? string - The user-defined label for the deploy key
- added_on? string - Timestamp of the added on of the deploy key.
- last_used? string - Timestamp of the last used of the deploy key.
- links? DeployKey_links - Hypermedia links related to the deploy key.
- owner? Account - The owner of the deploy key.
bitbucket: DeployKey_links
Hypermedia links related to the deploy key.
Fields
- self? Link_1 - A link to a resource related to this object.
bitbucket: Deployment
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- uuid? string - The UUID identifying the deployment.
- state? DeploymentState - The state of the deployment.
- environment? DeploymentEnvironment - The environment of the deployment.
- release? DeploymentRelease - The release of the deployment.
bitbucket: DeploymentEnvironment
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- uuid? string - The UUID identifying the environment.
- name? string - The name of the environment.
bitbucket: DeploymentRelease
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- uuid? string - The UUID identifying the release.
- name? string - The name of the release.
- url? string - Link to the pipeline that produced the release.
- 'commit? Commit - The commit of the deployment release.
- created_on? string - The timestamp when the release was created.
bitbucket: DeploymentState
Fields
- Fields Included from *GenericObject
- type string
- anydata...
bitbucket: DeploymentVariable
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- uuid? string - The UUID identifying the variable.
- 'key? string - The unique name of the variable.
- value? string - The value of the variable. If the variable is secured, this will be empty.
- secured? boolean - If true, this variable will be treated as secured. The value will never be exposed in the logs or the REST API.
bitbucket: Diffstat
A diffstat object that includes a summary of changes made to a file between two commits
Fields
- 'type string - Discriminator that identifies the type of this object.
- status? "added"|"removed"|"modified"|"renamed" - The status of the diffstat.
- lines_added? int - Numeric lines added of the diffstat.
- lines_removed? int - Numeric lines removed of the diffstat.
- old? CommitFile - The old of the diffstat.
- 'new? CommitFile - The new of the diffstat.
bitbucket: EffectiveRepoBranchingModel
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- branch_types? EffectiveRepoBranchingModel_branch_types[] - The active branch types.
- development? EffectiveRepoBranchingModel_development - The development of the effective repo branching model.
- production? EffectiveRepoBranchingModel_production - The production of the effective repo branching model.
bitbucket: EffectiveRepoBranchingModel_branch_types
Fields
- kind "feature"|"bugfix"|"release"|"hotfix" - The kind of branch.
- prefix string - The prefix for this branch type. A branch with this prefix will be classified as per
kind. The prefix must be a valid prefix for a branch and must always exist. It cannot be blank, empty ornull.
bitbucket: EffectiveRepoBranchingModel_development
The development of the effective repo branching model.
Fields
- name string - Name of the target branch. Will be listed here even when the target branch does not exist. Will be
nullif targeting the main branch and the repository is empty.
- useMainbranch boolean - Indicates if the setting points at an explicit branch (
false) or tracks the main branch (true).
- branch? Branch - The branch used as the development branch.
bitbucket: EffectiveRepoBranchingModel_production
The production of the effective repo branching model.
Fields
- name string - Name of the target branch. Will be listed here even when the target branch does not exist. Will be
nullif targeting the main branch and the repository is empty.
- useMainbranch boolean - Indicates if the setting points at an explicit branch (
false) or tracks the main branch (true).
- branch? Branch - The branch used as the production branch.
bitbucket: FileConflict
A file conflict object
Fields
- 'type string - Discriminator that identifies the type of this object.
- path? string - The path of the file conflict.
- scenario? "delete_modify"|"modify_delete"|"content"|"binary"|"flags"|"mode"|"type"|"symlink"|"directory_file"|"file_directory"|"add_rename"|"rename_add"|"delete_rename"|"rename_delete"|"rename"|"subrepo"|"unknown" - The scenario of the file conflict.
- message? string - The message of the file conflict.
bitbucket: GenericObject
Base type for most resource objects. It defines the common type element that identifies an object's type. It also identifies the element as Swagger's discriminator
Fields
- 'type string - Discriminator that identifies the type of this object.
bitbucket: GetFileOrDirectoryContentsQueries
Represents the Queries record for the operation: getFileOrDirectoryContents
Fields
- q? string - Optional filter expression as per filtering and sorting
- maxDepth? int - If provided, returns the contents of the repository and its subdirectories recursively until the specified max_depth of nested directories. When omitted, this defaults to 1
- format? "meta"|"rendered" - If 'meta' is provided, returns the (json) meta data for the contents of the file. If 'rendered' is provided, returns the contents of a non-binary file in HTML-formatted rendered markup. The 'rendered' option only supports these filetypes:
.md,.markdown,.mkd,.mkdn,.mdown,.text,.rst, and.textile. Since Git does not generally track what text encoding scheme is used, this endpoint attempts to detect the most appropriate character encoding. While usually correct, determining the character encoding can be ambiguous which in exceptional cases can lead to misinterpretation of the characters. As such, the raw element in the response object should not be treated as equivalent to the file's actual contents
- sort? string - Optional sorting parameter as per filtering and sorting
bitbucket: GetRootDirectoryMainBranchQueries
Represents the Queries record for the operation: getRootDirectoryMainBranch
Fields
- format? "meta" - Instead of returning the file's contents, return the (json) meta data for it
bitbucket: GetSnippetChangesBetweenVersionsQueries
Represents the Queries record for the operation: getSnippetChangesBetweenVersions
Fields
- path? string - When used, only one the diff of the specified file will be returned
bitbucket: GpgAccountKey
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- owner? Account - The owner of the gpg account key.
- 'key? string - The GPG key value in X format.
- key_id? string - The unique identifier for the GPG key
- fingerprint? string - The GPG key fingerprint.
- parent_fingerprint? string - The fingerprint of the parent key. This value is null unless the current key is a subkey.
- name? string - The user-defined label for the GPG key
- expires_on? string - Timestamp of the expires on of the gpg account key.
- created_on? string - Timestamp of the created on of the gpg account key.
- added_on? string - Timestamp of the added on of the gpg account key.
- last_used? string - Timestamp of the last used of the gpg account key.
- subkeys? GpgAccountKey[] - List of subkeys of the gpg account key.
- links? GpgAccountKey_links - Hypermedia links related to the gpg account key.
bitbucket: GpgAccountKey_links
Hypermedia links related to the gpg account key.
Fields
- self? Link_1 - A link to a resource related to this object.
bitbucket: Group
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- links? Group_links - Hypermedia links related to the group.
- owner? Account - The owner of the group.
- workspace? Workspace - The workspace of the group.
- name? string - Name of the group.
- slug? string - The "sluggified" version of the group's name. This contains only ASCII characters and can therefore be slightly different than the name
- full_slug? string - The concatenation of the workspace's slug and the group's slug,
separated with a colon (e.g.
acme:developers)
bitbucket: Group_links
Hypermedia links related to the group.
Fields
- self? Link_1 - A link to a resource related to this object.
- html? Link_1 - A link to a resource related to this object.
bitbucket: HookEvent
An event, associated with a resource or subject type
Fields
- description? string - More detailed description of the webhook event type
- label? string - Summary of the webhook event type
- event? "issue:comment_created"|"issue:created"|"issue:updated"|"pipeline:span_created"|"project:updated"|"pullrequest:approved"|"pullrequest:changes_request_created"|"pullrequest:changes_request_removed"|"pullrequest:comment_created"|"pullrequest:comment_deleted"|"pullrequest:comment_reopened"|"pullrequest:comment_resolved"|"pullrequest:comment_updated"|"pullrequest:created"|"pullrequest:fulfilled"|"pullrequest:push"|"pullrequest:rejected"|"pullrequest:unapproved"|"pullrequest:updated"|"repo:commit_comment_created"|"repo:commit_status_created"|"repo:commit_status_updated"|"repo:created"|"repo:deleted"|"repo:fork"|"repo:imported"|"repo:push"|"repo:transfer"|"repo:updated" - The event identifier
- category? string - The category this event belongs to
bitbucket: Link
A link to a resource related to this object
Fields
- name? string - Display name of the linked resource
- href? string - URL of the linked resource
bitbucket: Link1
A link to a resource related to this object
Fields
- name? string - Name of the link
- href? string - URL of the linked resource
bitbucket: Link_1
A link to a resource related to this object.
Fields
- name? string - Display name of the linked resource.
- href? string - URL of the linked resource.
bitbucket: ListBranchesAndTagsQueries
Represents the Queries record for the operation: listBranchesAndTags
Fields
- q? string - Query string to narrow down the response as per filtering and sorting
- sort? string - Field by which the results should be sorted as per
filtering and sorting. The
namefield is handled specially for refs in that, if specified as the sort field, it uses a natural sort order instead of the default lexicographical sort order. For example, it will return ['1.1', '1.2', '1.10'] instead of ['1.1', '1.10', '1.2']
bitbucket: ListBranchRestrictionsQueries
Represents the Queries record for the operation: listBranchRestrictions
Fields
- kind? string - Branch restrictions of this type
- pattern? string - Branch restrictions applied to branches of this pattern
bitbucket: ListCommitCommentsQueries
Represents the Queries record for the operation: listCommitComments
Fields
- q? string - Query string to narrow down the response as per filtering and sorting
- sort? string - Field by which the results should be sorted as per filtering and sorting
bitbucket: ListCommitStatusesForCommitQueries
Represents the Queries record for the operation: listCommitStatusesForCommit
Fields
- q? string - Query string to narrow down the response as per filtering and sorting
- sort? string - Field by which the results should be sorted as per
filtering and sorting.
Defaults to
created_on
- refname? string - If specified, only return commit status objects that were either created without a refname, or were created with the specified refname
bitbucket: ListCommitStatusesForPullRequestQueries
Represents the Queries record for the operation: listCommitStatusesForPullRequest
Fields
- q? string - Query string to narrow down the response as per filtering and sorting
- sort? string - Field by which the results should be sorted as per
filtering and sorting.
Defaults to
created_on
bitbucket: ListCommitsThatModifiedFileQueries
Represents the Queries record for the operation: listCommitsThatModifiedFile
Fields
- q? string - Query string to narrow down the response as per filtering and sorting
- sort? string - Name of a response property sort the result by as per filtering and sorting
- renames? string - When
true, Bitbucket will follow the history of the file across renames (this is the default behavior). This can be turned off by specifyingfalse
bitbucket: ListOpenBranchesQueries
Represents the Queries record for the operation: listOpenBranches
Fields
- q? string - Query string to narrow down the response as per filtering and sorting
- sort? string - Field by which the results should be sorted as per
filtering and sorting. The
namefield is handled specially for branches in that, if specified as the sort field, it uses a natural sort order instead of the default lexicographical sort order. For example, it will return ['branch1', 'branch2', 'branch10'] instead of ['branch1', 'branch10', 'branch2']
bitbucket: ListPipelinesQueries
Represents the Queries record for the operation: listPipelines
Fields
- triggerType? "PUSH"|"MANUAL"|"SCHEDULED"|"PARENT_STEP" - The trigger type to filter by
- creatorUuid? string - The UUID of the creator of the pipeline to filter by
- targetSelectorType? "BRANCH"|"TAG"|"CUSTOM"|"PULLREQUESTS"|"DEFAULT" - The type of pipeline to filter by
- sort? "creator.uuid"|"created_on"|"run_creation_date" - The attribute name to sort on
- targetCommitHash? string - The revision to filter by
- targetRefType? "BRANCH"|"TAG"|"ANNOTATED_TAG" - The type of the reference to filter by
- createdOn? string - The creation date to filter by
- targetBranch? string - The name of the branch to filter by
- targetRefName? string - The reference name to filter by
- targetSelectorPattern? string - The pipeline pattern to filter by
- page Signed32(default 1) - The page number of elements to retrieve
- pagelen Signed32(default 10) - The maximum number of results to return
- status? "PARSING"|"PENDING"|"PAUSED"|"HALTED"|"BUILDING"|"ERROR"|"PASSED"|"FAILED"|"STOPPED"|"UNKNOWN" - The pipeline status to filter by
bitbucket: ListPullRequestMergeabilityChecksQueries
Represents the Queries record for the operation: listPullRequestMergeabilityChecks
Fields
- q? string - Only a limited subset of BBQL is supported here. Checks that are expensive to calculate can be excluded:
type!="git_mergeability_check"skips Git conflict evaluation, andcheck.kind!="maximum_commits_behind"skips the bounded Git ancestry check behind that standard merge check. Combine both withAND(either order). Anything else returns400 Bad Request
bitbucket: ListPullRequestsQueries
Represents the Queries record for the operation: listPullRequests
Fields
- state? "OPEN"|"MERGED"|"DECLINED"|"SUPERSEDED" - Only return pull requests that are in this state. This parameter can be repeated
bitbucket: ListPullRequestsThatContainCommitQueries
Represents the Queries record for the operation: listPullRequestsThatContainCommit
Fields
- page Signed32(default 1) - Which page to retrieve
- pagelen Signed32(default 30) - How many pull requests to retrieve per page
bitbucket: ListRepositoriesInWorkspaceQueries
Represents the Queries record for the operation: listRepositoriesInWorkspace
Fields
- q? string - Query string to narrow down the response as per filtering and sorting
- role? "admin"|"contributor"|"member"|"owner" - Filters the result based on the authenticated user's role on each repository.
- member: returns repositories to which the user has explicit read access
- contributor: returns repositories to which the user has explicit write access
- admin: returns repositories to which the user has explicit administrator access
- owner: returns all repositories owned by the current user
- sort? string - Field by which the results should be sorted as per filtering and sorting.
bitbucket: ListRepositoryForksQueries
Represents the Queries record for the operation: listRepositoryForks
Fields
- q? string - Query string to narrow down the response as per filtering and sorting
- role? "admin"|"contributor"|"member"|"owner" - Filters the result based on the authenticated user's role on each repository.
- member: returns repositories to which the user has explicit read access
- contributor: returns repositories to which the user has explicit write access
- admin: returns repositories to which the user has explicit administrator access
- owner: returns all repositories owned by the current user
- sort? string - Field by which the results should be sorted as per filtering and sorting
bitbucket: ListRepositoryPermissionsForWorkspaceQueries
Represents the Queries record for the operation: listRepositoryPermissionsForWorkspace
Fields
- q? string - Query string to narrow down the response as per filtering and sorting
- sort? string - Name of a response property sort the result by as per filtering and sorting
bitbucket: ListSnippetsInWorkspaceQueries
Represents the Queries record for the operation: listSnippetsInWorkspace
Fields
- role? "owner"|"contributor"|"member" - Filter down the result based on the authenticated user's role (
owner,contributor, ormember)
bitbucket: ListTagsQueries
Represents the Queries record for the operation: listTags
Fields
- q? string - Query string to narrow down the response as per filtering and sorting
- sort? string - Field by which the results should be sorted as per
filtering and sorting. The
namefield is handled specially for tags in that, if specified as the sort field, it uses a natural sort order instead of the default lexicographical sort order. For example, it will return ['1.1', '1.2', '1.10'] instead of ['1.1', '1.10', '1.2']
bitbucket: ListTasksOnPullRequestQueries
Represents the Queries record for the operation: listTasksOnPullRequest
Fields
- q? string - Query string to narrow down the response. See filtering and sorting for details
- sort? string - Field by which the results should be sorted as per
filtering and sorting.
Defaults to
created_on
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: ListUserPermissionsInWorkspaceQueries
Represents the Queries record for the operation: listUserPermissionsInWorkspace
Fields
- q? string - Query string to narrow down the response as per filtering and sorting
bitbucket: ListUserWorkspaceRepoPermissionsQueries
Represents the Queries record for the operation: listUserWorkspaceRepoPermissions
Fields
- q? string - Query string to narrow down the response as per filtering and sorting
- sort? string - Name of a response property sort the result by as per filtering and sorting
bitbucket: ListWorkspacePullRequestsForUserQueries
Represents the Queries record for the operation: listWorkspacePullRequestsForUser
Fields
- state? "OPEN"|"MERGED"|"DECLINED"|"SUPERSEDED" - Only return pull requests that are in this state. This parameter can be repeated
bitbucket: ListWorkspaceRepoPermissionsQueries
Represents the Queries record for the operation: listWorkspaceRepoPermissions
Fields
- q? string - Query string to narrow down the response as per filtering and sorting
- sort? string - Name of a response property sort the result by as per filtering and sorting
bitbucket: ListWorkspacesForCurrentUserQueries
Represents the Queries record for the operation: listWorkspacesForCurrentUser
Fields
- administrator? boolean - Filter workspaces based on which ones the caller has admin permissions or not
- sort? string - Name of a response property to sort results (only slug is supported)
bitbucket: MergePullRequestQueries
Represents the Queries record for the operation: mergePullRequest
Fields
- async? boolean - Default value is false. When set to true, runs merge asynchronously and immediately returns a 202 with polling link to the task-status API in the Location header. When set to false, runs merge and waits for it to complete, returning 200 when it succeeds. If the duration of the merge exceeds a timeout threshold, the API returns a 202 with polling link to the task-status API in the Location header
bitbucket: OAuth2RefreshTokenGrantConfig
OAuth2 Refresh Token Grant Configs
Fields
- Fields Included from *OAuth2RefreshTokenGrantConfig
- refreshUrl string(default "https://bitbucket.org/site/oauth2/access_token") - Refresh URL
bitbucket: PaginatedAccounts
A paginated list of accounts
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? Account[] - List of account objects in this page of results
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedAnnotations
A paginated list of annotations
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? ReportAnnotation[] - The values of the current page
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedBranches
A paginated list of branches
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? Branch[] - List of branch objects in this page of results
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedBranchRestrictions
A paginated list of branch restriction rules
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? BranchRestriction[] - List of branch restriction objects in this page of results
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedChangeset
A paginated list of commits
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? BaseCommit[] - List of base commit objects in this page of results
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedCommitComments
A paginated list of commit comments
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? CommitComment[] - List of commit comment objects in this page of results
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedCommitstatuses
A paginated list of commit status objects
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? Commitstatus[] - List of commitstatus objects in this page of results
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedDefaultReviewerAndType
A paginated list of default reviewers with reviewer type
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? DefaultReviewerAndType[] - List of default reviewer and type objects in this page of results
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedDeployKeys
A paginated list of deploy keys
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? DeployKey[] - List of deploy key objects in this page of results
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedDeployments
A paged list of deployments
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? Deployment[] - The values of the current page
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedDeploymentVariable
A paged list of deployment variables
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? DeploymentVariable[] - The values of the current page
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedDiffstats
A paginated list of diffstats
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? Diffstat[] - List of diffstat objects in this page of results
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 500 with 5000 being the maximum allowed value
bitbucket: PaginatedEnvironments
A paged list of environments
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? DeploymentEnvironment[] - The values of the current page
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedFileConflicts
A paginated list of file conflicts
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? FileConflict[] - List of file conflict objects in this page of results
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedFiles
A paginated list of commit_file objects
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? CommitFile[] - List of commit file objects in this page of results
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedGpgUserKeys
A paginated list of GPG keys
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? GpgAccountKey[] - List of gpg account key objects in this page of results
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedHookEvents
A paginated list of webhook types available to subscribe on
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collection's first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? HookEvent[] - List of hook event objects in this page of results
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedPipelineCaches
A paged list of pipeline caches
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? PipelineCache[] - The values of the current page
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedPipelineKnownHosts
A paged list of known hosts
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? PipelineKnownHost[] - The values of the current page
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedPipelineRunners
A paged list of runners
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? PipelineRunner[] - The values of the current page
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedPipelines
A paged list of pipelines
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? Pipeline[] - The values of the current page
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedPipelineScheduleExecutions
A paged list of the executions of a schedule
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? PipelineScheduleExecution[] - The values of the current page
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedPipelineSchedules
A paged list of schedules
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? PipelineSchedule[] - The values of the current page
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedPipelineSteps
A paged list of pipeline steps
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? PipelineStep[] - The values of the current page
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedPipelineVariables
A paged list of variables
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? PipelineVariable[] - The values of the current page
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedProjectDeployKeys
A paginated list of project deploy keys
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? ProjectDeployKey[] - List of project deploy key objects in this page of results
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedProjectGroupPermissions
A paginated list of project group permissions
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? ProjectGroupPermission[] - List of project group permission objects in this page of results
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedProjects
A paginated list of projects
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? Project[] - List of project objects in this page of results
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedProjectUserPermissions
A paginated list of project user permissions
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? ProjectUserPermission[] - List of project user permission objects in this page of results
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedPullrequestComments
A paginated list of pullrequest comments
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? PullrequestComment[] - List of pullrequest comment objects in this page of results
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedPullrequests
A paginated list of pullrequests
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? Pullrequest[] - List of pullrequest objects in this page of results
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedRefs
A paginated list of refs
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? Ref[] - List of ref objects in this page of results
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedReports
A paginated list of reports
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? Report[] - The values of the current page
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedRepositories
A paginated list of repositories
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? Repository[] - List of repository objects in this page of results
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedRepositoryGroupPermissions
A paginated list of repository group permissions
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? RepositoryGroupPermission[] - List of repository group permission objects in this page of results
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedRepositoryPermissions
A paginated list of repository permissions
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? RepositoryPermission[] - List of repository permission objects in this page of results
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedRepositoryUserPermissions
A paginated list of repository user permissions
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? RepositoryUserPermission[] - List of repository user permission objects in this page of results
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedSnippetComments
A paginated list of snippet comments
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? SnippetComment[] - List of snippet comment objects in this page of results
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedSnippetCommit
A paginated list of snippet commits
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? SnippetCommit[] - List of snippet commit objects in this page of results
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedSnippets
A paginated list of snippets
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? Snippet[] - List of snippet objects in this page of results
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedSshUserKeys
A paginated list of SSH keys
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? SshAccountKey[] - List of ssh account key objects in this page of results
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedTags
A paginated list of tags
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? Tag[] - List of tag objects in this page of results
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedTasks
A paginated list of tasks
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? PullrequestCommentTask[] - List of pullrequest comment task objects in this page of results
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedTreeentries
A paginated list of commit_file and/or commit_directory objects
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? Treeentry[] - List of treeentry objects in this page of results
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedWebhookSubscriptions
A paginated list of webhook subscriptions
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? WebhookSubscription[] - List of webhook subscription objects in this page of results
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedWorkspaceAccess
A paginated list of workspace permissions
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? WorkspaceAccess[] - List of workspace access objects in this page of results
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: PaginatedWorkspaceMemberships
A paginated list of workspace memberships
Fields
- next? string - Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs
- size? int - Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute
- previous? string - Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs
- values? WorkspaceMembership[] - List of workspace membership objects in this page of results
- page? int - Page number of the current results. This is an optional element that is not provided in all responses
- pagelen? int - Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values
bitbucket: Participant
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- user? Account - The user associated with the participant.
- role? "PARTICIPANT"|"REVIEWER" - The role of the participant.
- approved? boolean - Indicates whether the participant has approved.
- state? "approved"|"changes_requested"? - The state of the participant.
- participated_on? string - The ISO8601 timestamp of the participant's action. For approvers, this is the time of their approval. For commenters and pull request reviewers who are not approvers, this is the time they last commented, or null if they have not commented.
bitbucket: Pipeline
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- uuid? string - The UUID identifying the pipeline.
- build_number? int - The build number of the pipeline.
- creator? Account - The creator of the pipeline.
- repository? Repository - The repository of the pipeline.
- target? PipelineTarget - The target of the pipeline.
- trigger? PipelineTrigger - The trigger of the pipeline.
- state? PipelineState - The state of the pipeline.
- variables? PipelineVariable[] - The variables for the pipeline.
- created_on? string - The timestamp when the pipeline was created.
- completed_on? string - The timestamp when the Pipeline was completed. This is not set if the pipeline is still in progress.
- build_seconds_used? int - The number of build seconds used by this pipeline.
- configuration_sources? PipelineConfigurationSource[] - An ordered list of sources of the pipeline configuration
- links? PipelinesPipelineLinks - Hypermedia links related to the pipeline.
bitbucket: PipelineBuildNumber
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- next? int - The next number that will be used as build number.
bitbucket: PipelineCache
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- uuid? string - The UUID identifying the pipeline cache.
- pipeline_uuid? string - The UUID of the pipeline that created the cache.
- step_uuid? string - The uuid of the step that created the cache.
- name? string - The name of the cache.
- key_hash? string - The key hash of the cache version.
- path? string - The path where the cache contents were retrieved from.
- file_size_bytes? int - The size of the file containing the archive of the cache.
- created_on? string - The timestamp when the cache was created.
bitbucket: PipelineCacheContentUri
A representation of the location of pipeline cache content
Fields
- uri? string - The uri for pipeline cache content
bitbucket: PipelineCommand
An executable pipeline command
Fields
- name? string - The name of the command
- command? string - The executable command
bitbucket: PipelineConfigurationSource
Information about the source of the pipeline configuration
Fields
- 'source string - Identifier of the configuration source
- uri string - Link to the configuration source view or its immediate content
bitbucket: PipelineImage
The definition of a Docker image that can be used for a Bitbucket Pipelines step execution context
Fields
- password? string - The password needed to authenticate with the Docker registry. Only required when using a private Docker image
- name? string - The name of the image. If the image is hosted on DockerHub the short name can be used, otherwise the fully qualified name is required here
- email? string - The email needed to authenticate with the Docker registry. Only required when using a private Docker image
- username? string - The username needed to authenticate with the Docker registry. Only required when using a private Docker image
bitbucket: PipelineKnownHost
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- uuid? string - The UUID identifying the known host.
- hostname? string - The hostname of the known host.
- public_key? PipelineSshPublicKey - The public key of the pipeline known host.
bitbucket: PipelineRefTarget
Fields
- Fields Included from *PipelineTarget
- type string
- anydata...
- ref_type? "branch"|"tag"|"named_branch"|"bookmark" - The type of reference (branch/tag).
- ref_name? string - The name of the reference.
- 'commit? Commit - The commit of the pipeline ref target.
- selector? PipelineSelector - The selector of the pipeline ref target.
bitbucket: PipelineRunner
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- uuid? string - The UUID identifying the runner.
- name? string - The name of the runner.
- labels? string[] - Labels assigned to the runner for identification and routing.
- state? PipelineRunnerState - The state of the pipeline runner.
- created_on? string - The timestamp when the runner was created.
- updated_on? string - The timestamp when the runner was last updated.
- oauth_client? PipelineRunnerOauthClient - The oauth client of the pipeline runner.
bitbucket: PipelineRunnerOauthClient
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- id? string - The OAuth client ID.
- secret? string - The OAuth client secret. This is an optional element that is only provided once.
- token_endpoint? string - The OAuth token endpoint URL.
- audience? string - The intended audience for the OAuth token.
bitbucket: PipelineRunnerState
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- status? "UNREGISTERED"|"ONLINE"|"OFFLINE"|"DISABLED"|"ENABLED"|"UNHEALTHY" - The current status of the runner.
- version? PipelineRunnerVersion - The version of the pipeline runner state.
- updated_on? string - The timestamp when the runner state was last updated.
- cordoned? boolean - Whether the runner is cordoned (prevented from accepting new steps).
bitbucket: PipelineRunnerVersion
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- version? string - The currently installed version of the runner.
- current? string - The current recommended version of the runner.
bitbucket: PipelineSchedule
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- uuid? string - The UUID identifying the schedule.
- enabled? boolean - Whether the schedule is enabled.
- target? PipelineRefTarget - The target of the pipeline schedule.
- cron_pattern? string - The cron expression with second precision (7 fields) that the schedule applies. For example, for expression: 0 0 12 * * ? *, will execute at 12pm UTC every day.
- created_on? string - The timestamp when the schedule was created.
- updated_on? string - The timestamp when the schedule was updated.
bitbucket: PipelineScheduleExecution
Fields
- Fields Included from *GenericObject
- type string
- anydata...
bitbucket: PipelineSchedulePostRequestBody
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- target PipelineSchedulePostRequestBody_target - The target on which the schedule will be executed.
- enabled? boolean - Whether the schedule is enabled.
- cron_pattern string - The cron expression with second precision (7 fields) that the schedule applies. For example, for expression: 0 0 12 * * ? *, will execute at 12pm UTC every day.
bitbucket: PipelineSchedulePostRequestBody_target
The target on which the schedule will be executed.
Fields
- refName string - The name of the reference.
- selector PipelineSelector - The selector that picks the pipeline definition to run on schedule.
- refType "branch" - The type of reference (branch only).
bitbucket: PipelineSchedulePutRequestBody
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- enabled? boolean - Whether the schedule is enabled.
bitbucket: PipelinesConfig
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- enabled? boolean - Whether Pipelines is enabled for the repository.
- repository? Repository - The repository of the pipelines config.
bitbucket: PipelineSelector
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- 'type? "branches"|"tags"|"bookmarks"|"default"|"custom" - The type of selector.
- pattern? string - The name of the matching pipeline definition.
bitbucket: PipelinesLinksSectionHref
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- href? string - URL of the linked resource.
bitbucket: PipelinesPipelineLinks
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- self? PipelinesLinksSectionHref - The self of the pipelines pipeline links.
- steps? PipelinesLinksSectionHref - The steps of the pipelines pipeline links.
bitbucket: PipelineSshKeyPair
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- private_key? string - The SSH private key. This value will be empty when retrieving the SSH key pair.
- public_key? string - The SSH public key.
bitbucket: PipelineSshPublicKey
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- key_type? string - The type of the public key.
- 'key? string - The base64 encoded public key.
- md5_fingerprint? string - The MD5 fingerprint of the public key.
- sha256_fingerprint? string - The SHA-256 fingerprint of the public key.
bitbucket: PipelineState
Fields
- Fields Included from *GenericObject
- type string
- anydata...
bitbucket: PipelineStep
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- uuid? string - The UUID identifying the step.
- started_on? string - The timestamp when the step execution was started. This is not set when the step hasn't executed yet.
- completed_on? string - The timestamp when the step execution was completed. This is not set if the step is still in progress.
- state? PipelineStepState - The state of the pipeline step.
- image? PipelineImage - The image of the pipeline step.
- setup_commands? PipelineCommand[] - The list of commands that are executed as part of the setup phase of the build. These commands are executed outside the build container.
- script_commands? PipelineCommand[] - The list of build commands. These commands are executed in the build container.
bitbucket: PipelineStepState
Fields
- Fields Included from *GenericObject
- type string
- anydata...
bitbucket: PipelineTarget
Fields
- Fields Included from *GenericObject
- type string
- anydata...
bitbucket: PipelineTrigger
Fields
- Fields Included from *GenericObject
- type string
- anydata...
bitbucket: PipelineVariable
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- uuid? string - The UUID identifying the variable.
- 'key? string - The unique name of the variable.
- value? string - The value of the variable. If the variable is secured, this will be empty.
- secured? boolean - If true, this variable will be treated as secured. The value will never be exposed in the logs or the REST API.
bitbucket: Project
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- links? Project_links - Hypermedia links related to the project.
- uuid? string - The project's immutable id.
- 'key? string - The project's key.
- owner? Team - The owner of the project.
- name? string - The name of the project.
- description? string - The description of the project.
- is_private? boolean - Indicates whether the project is publicly accessible, or whether it is private to the team and consequently only visible to team members. Note that private projects cannot contain public repositories.
- created_on? string - Timestamp of the created on of the project.
- updated_on? string - Timestamp of the updated on of the project.
- has_publicly_visible_repos? boolean - Indicates whether the project contains publicly visible repositories. Note that private projects cannot contain public repositories.
bitbucket: Project_links
Hypermedia links related to the project.
Fields
- html? Link_1 - A link to a resource related to this object.
- avatar? Link_1 - A link to a resource related to this object.
bitbucket: ProjectBranchingModel
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- branch_types? EffectiveRepoBranchingModel_branch_types[] - The active branch types.
- development? ProjectBranchingModel_development - The development of the project branching model.
- production? ProjectBranchingModel_production - The production of the project branching model.
bitbucket: ProjectBranchingModel_development
The development of the project branching model.
Fields
- name string - Name of the target branch. If inherited by a repository, it will default to the main branch if the specified branch does not exist.
- useMainbranch boolean - Indicates if the setting points at an explicit branch (
false) or tracks the main branch (true).
bitbucket: ProjectBranchingModel_production
The production of the project branching model.
Fields
- name string - Name of the target branch. If inherited by a repository, it will default to the main branch if the specified branch does not exist.
- useMainbranch boolean - Indicates if the setting points at an explicit branch (
false) or tracks the main branch (true).
bitbucket: ProjectDeployKey
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- 'key? string - The deploy key value.
- project? Project - The project of the project deploy key.
- comment? string - The comment parsed from the deploy key (if present)
- label? string - The user-defined label for the deploy key
- added_on? string - Timestamp of the added on of the project deploy key.
- last_used? string - Timestamp of the last used of the project deploy key.
- links? ProjectDeployKey_links - Hypermedia links related to the project deploy key.
- created_by? Account - The created by of the project deploy key.
bitbucket: ProjectDeployKey_links
Hypermedia links related to the project deploy key.
Fields
- self? Link_1 - A link to a resource related to this object.
bitbucket: ProjectGroupPermission
A group's permission for a given project
Fields
- 'type string - Discriminator that identifies the type of this object.
- links? ProjectGroupPermissionLinks - Hypermedia links related to the permission
- permission? "read"|"write"|"create-repo"|"admin"|"none" - The permission level granted on the project group permission.
- group? Group - The group of the project group permission.
- project? Project - The project of the project group permission.
bitbucket: ProjectGroupPermissionLinks
Hypermedia links related to the permission
Fields
- self? Link - A link to a resource related to this object
bitbucket: ProjectPermissionUpdate
Fields
- permission "read"|"write"|"create-repo"|"admin" - The permission level granted on the project permission update
bitbucket: ProjectUserPermission
A user's direct permission for a given project
Fields
- 'type string - Discriminator that identifies the type of this object.
- links? ProjectGroupPermissionLinks - Hypermedia links related to the permission
- permission? "read"|"write"|"create-repo"|"admin"|"none" - The permission level granted on the project user permission.
- user? User - The user associated with the project user permission.
- project? Project - The project of the project user permission.
bitbucket: Pullrequest
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- links? Pullrequest_links - Hypermedia links related to the pullrequest.
- id? int - The pull request's unique ID. Note that pull request IDs are only unique within their associated repository.
- title? string - Title of the pull request.
- rendered? RenderedPullRequestMarkup - User provided pull request text, interpreted in a markup language and rendered in HTML
- summary? Pullrequest_summary - The summary of the pullrequest.
- state? "OPEN"|"MERGED"|"DECLINED"|"SUPERSEDED" - The pull request's current status.
- author? Account - The author of the pullrequest.
- 'source? PullrequestEndpoint - The source of the pullrequest.
- destination? PullrequestEndpoint - The destination of the pullrequest.
- merge_commit? PullRequestCommit_1 - The merge commit of the pullrequest.
- comment_count? int - The number of comments for a specific pull request.
- task_count? int - The number of open tasks for a specific pull request.
- close_source_branch? boolean - A boolean flag indicating if merging the pull request closes the source branch.
- closed_by? Account - The closed by of the pullrequest.
- reason? string - Explains why a pull request was declined. This field is only applicable to pull requests in rejected state.
- created_on? string - The ISO8601 timestamp the request was created.
- updated_on? string - The ISO8601 timestamp the request was last updated.
- reviewers? Account[] - The list of users that were added as reviewers on this pull request when it was created. For performance reasons, the API only includes this list on a pull request's
selfURL.
- participants? Participant[] - The list of users that are collaborating on this pull request.
Collaborators are user that:
- are added to the pull request as a reviewer (part of the reviewers list)
- are not explicit reviewers, but have commented on the pull request
- are not explicit reviewers, but have approved the pull request
- draft? boolean - A boolean flag indicating whether the pull request is a draft.
- queued? boolean - A boolean flag indicating whether the pull request is queued
bitbucket: Pullrequest_links
Hypermedia links related to the pullrequest.
Fields
- comments? Link_1 - A link to a resource related to this object.
- activity? Link_1 - A link to a resource related to this object.
- approve? Link_1 - A link to a resource related to this object.
- merge? Link_1 - A link to a resource related to this object.
- decline? Link_1 - A link to a resource related to this object.
- self? Link_1 - A link to a resource related to this object.
- commits? Link_1 - A link to a resource related to this object.
- html? Link_1 - A link to a resource related to this object.
- diff? Link_1 - A link to a resource related to this object.
- mergeability_checks? Link_1 - A link to a resource related to this object.
- diffstat? Link_1 - A link to a resource related to this object.
bitbucket: Pullrequest_summary
The summary of the pullrequest.
Fields
- markup? "markdown"|"creole"|"plaintext" - The type of markup language the raw content is to be interpreted in.
- raw? string - The text as it was typed by a user.
- html? string - The user's content rendered as HTML.
bitbucket: PullRequestBranch
The branch of the pullrequest endpoint
Fields
- defaultMergeStrategy? string - The default merge strategy, when this endpoint is the destination of the pull request
- name? string - The name of the branch
- mergeStrategies? ("merge_commit"|"squash"|"fast_forward"|"squash_fast_forward"|"rebase_fast_forward"|"rebase_merge")[] - Available merge strategies, when this endpoint is the destination of the pull request
bitbucket: PullrequestComment
Fields
- Fields Included from *Comment
- id int
- created_on string
- updated_on string
- content Comment_content
- user Account
- deleted boolean
- parent Comment
- inline Comment_inline
- links Comment_links
- type string
- anydata...
- pullrequest? Pullrequest - The pullrequest of the pullrequest comment.
- resolution? CommentResolution - The resolution of the pullrequest comment.
- pending? boolean - Indicates whether the pullrequest comment has pending.
bitbucket: PullrequestCommentTask
Fields
- Fields Included from *PullrequestTask
- links PullrequestTask_links
- updatedOn string
- creator Account
- resolvedBy Account
- createdOn string
- pending boolean
- resolvedOn string
- id int
- state "RESOLVED"|"UNRESOLVED"
- content TaskContent
- anydata...
- comment? Comment - The comment of the pullrequest comment task
bitbucket: PullRequestCommit
The commit of the pullrequest endpoint
Fields
- hash? string - The hash of the commit
bitbucket: PullRequestCommit_1
The merge commit of the pullrequest.
Fields
- hash? string - The hash of the merge commit.
bitbucket: PullrequestEndpoint
Fields
- 'commit? PullRequestCommit - The commit of the pullrequest endpoint
- repository? Repository - The repository of the pullrequest endpoint
- branch? PullRequestBranch - The branch of the pullrequest endpoint
bitbucket: PullrequestMergeabilityCheck
A mergeability check. The type identifies the concrete check and its additional fields
Fields
- 'type "pullrequest_state_check"|"current_user_permission_check"|"git_mergeability_check"|"standard_merge_check"|"custom_pre_merge_check"|"custom_on_merge_check"|"merge_queue_check" - Discriminator that identifies the type of this object.
- status "PASSED"|"FAILED"|"PENDING"|"SKIPPED"|"UNKNOWN" - Whether this check passed.
UNKNOWNmeans the check could not be evaluated; it does not establish that the pull request is mergeable.
- required boolean - Whether this check must pass for the pull request to be mergeable.
- blocking boolean - Whether this check is currently preventing the pull request from being merged.
bitbucket: PullrequestMergeabilityChecks
The collection of checks that determine whether the specified pull request can be merged. Every check has a type identifying its shape - see pullrequest_state_check, current_user_permission_check, git_mergeability_check, standard_merge_check, custom_merge_check, and merge_queue_check for what each type covers
Fields
- size? int - Total number of items in the collection, when known
- values PullrequestMergeabilityCheck[] - List of pullrequest mergeability check objects in this page of results
bitbucket: PullrequestMergeParameters
The metadata that describes a pull request merge
Fields
- 'type string - Discriminator that identifies the type of this object.
- message? string - The commit message that will be used on the resulting commit. Note that the size of the message is limited to 128 KiB.
- close_source_branch? boolean - Whether the source branch should be deleted. If this is not provided, we fallback to the value used when the pull request was created, which defaults to False
- merge_strategy "merge_commit"|"squash"|"fast_forward"|"squash_fast_forward"|"rebase_fast_forward"|"rebase_merge" (default "merge_commit") - The merge strategy that will be used to merge the pull request.
bitbucket: PullrequestTask
Fields
- Fields Included from *Task
- links? PullrequestTask_links - Hypermedia links related to the pullrequest task
bitbucket: PullrequestTask_links
Hypermedia links related to the pullrequest task
Fields
- self? Link_1 - A link to a resource related to this object.
- html? Link_1 - A link to a resource related to this object.
bitbucket: PullrequestTaskCreate
A pullrequest task create
Fields
- pending? boolean - Indicates whether the pullrequest task create has pending
- comment? Comment - The comment of the pullrequest task create
- content TaskRawContent - task raw content
bitbucket: PullrequestTaskUpdate
A pullrequest task update
Fields
- state? "RESOLVED"|"UNRESOLVED" - The state of the pullrequest task update
- content? TaskRawContent - task raw content
bitbucket: Ref
A ref object, representing a branch or tag in a repository
Fields
- 'type string - Discriminator that identifies the type of this object.
- links? RefLinks - Hypermedia links related to the ref
- name? string - The name of the ref.
- target? Commit - The target of the ref.
bitbucket: RefLinks
Hypermedia links related to the ref
Fields
- self? Link - A link to a resource related to this object
- commits? Link - A link to a resource related to this object
- html? Link - A link to a resource related to this object
bitbucket: RenderedPullRequestMarkup
User provided pull request text, interpreted in a markup language and rendered in HTML
Fields
- reason? RenderedPullRequestMarkup_reason - Pull request text in its raw form, its markup language and its rendered HTML.
- description? RenderedPullRequestMarkup_reason - Pull request text in its raw form, its markup language and its rendered HTML.
- title? RenderedPullRequestMarkup_reason - Pull request text in its raw form, its markup language and its rendered HTML.
bitbucket: RenderedPullRequestMarkup_reason
Pull request text in its raw form, its markup language and its rendered HTML.
Fields
- markup? "markdown"|"creole"|"plaintext" - The type of markup language the raw content is to be interpreted in.
- raw? string - The text as it was typed by a user.
- html? string - The user's content rendered as HTML.
bitbucket: RepoPermissionUpdate
Fields
- permission "read"|"write"|"admin" - The permission level granted on the repo permission update
bitbucket: Report
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- uuid? string - The UUID that can be used to identify the report.
- title? string - The title of the report.
- details? string - A string to describe the purpose of the report.
- external_id? string - ID of the report provided by the report creator. It can be used to identify the report as an alternative to it's generated uuid. It is not used by Bitbucket, but only by the report creator for updating or deleting this specific report. Needs to be unique.
- reporter? string - A string to describe the tool or company who created the report.
- link? string - A URL linking to the results of the report in an external tool.
- remote_link_enabled? boolean - If enabled, a remote link is created in Jira for the work item associated with the commit the report belongs to.
- logo_url? string - A URL to the report logo. If none is provided, the default insights logo will be used.
- report_type? "SECURITY"|"COVERAGE"|"TEST"|"BUG" - The type of the report.
- result? "PASSED"|"FAILED"|"PENDING" - The state of the report. May be set to PENDING and later updated.
- data? ReportData[] - An array of data fields to display information on the report. Maximum 10.
- created_on? string - The timestamp when the report was created.
- updated_on? string - The timestamp when the report was updated.
bitbucket: ReportAnnotation
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- external_id? string - ID of the annotation provided by the annotation creator. It can be used to identify the annotation as an alternative to it's generated uuid. It is not used by Bitbucket, but only by the annotation creator for updating or deleting this specific annotation. Needs to be unique.
- uuid? string - The UUID that can be used to identify the annotation.
- annotation_type? "VULNERABILITY"|"CODE_SMELL"|"BUG" - The type of the report.
- path? string - The path of the file on which this annotation should be placed. This is the path of the file relative to the git repository. If no path is provided, then it will appear in the overview modal on all pull requests where the tip of the branch is the given commit, regardless of which files were modified.
- line? int - The line number that the annotation should belong to. If no line number is provided, then it will default to 0 and in a pull request it will appear at the top of the file specified by the path field.
- summary? string - The message to display to users.
- details? string - The details to show to users when clicking on the annotation.
- result? "PASSED"|"FAILED"|"SKIPPED"|"IGNORED" - The state of the report. May be set to PENDING and later updated.
- severity? "CRITICAL"|"HIGH"|"MEDIUM"|"LOW" - The severity of the annotation.
- link? string - A URL linking to the annotation in an external tool.
- created_on? string - The timestamp when the report was created.
- updated_on? string - The timestamp when the report was updated.
bitbucket: ReportData
A key-value element that will be displayed along with the report
Fields
- 'type? "BOOLEAN"|"DATE"|"DURATION"|"LINK"|"NUMBER"|"PERCENTAGE"|"TEXT" - The type of data contained in the value field. If not provided, then the value will be detected as a boolean, number or string
- title? string - A string describing what this data field represents
- value? record {} - The value of the data element
bitbucket: Repository
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- links? Repository_links - Hypermedia links related to the repository.
- uuid? string - The repository's immutable id. This can be used as a substitute for the slug segment in URLs. Doing this guarantees your URLs will survive renaming of the repository by its owner, or even transfer of the repository to a different user.
- full_name? string - The concatenation of the repository owner's username and the slugified name, e.g. "evzijst/interruptingcow". This is the same string used in Bitbucket URLs.
- is_private? boolean - Indicates whether the repository is private.
- parent? Repository - The parent of the repository.
- scm? "git" - The scm of the repository.
- owner? Account - The owner of the repository.
- name? string - Name of the repository.
- description? string - The description of the repository.
- created_on? string - Timestamp of the created on of the repository.
- updated_on? string - Timestamp of the updated on of the repository.
- size? int - Total number of items in the collection, when known.
- language? string - The language of the repository.
- has_issues? boolean - The issue tracker for this repository is enabled. Issue Tracker features are not supported for repositories in workspaces administered through admin.atlassian.com.
- has_wiki? boolean - The wiki for this repository is enabled. Wiki features are not supported for repositories in workspaces administered through admin.atlassian.com.
- fork_policy? "allow_forks"|"no_public_forks"|"no_forks" - Controls the rules for forking this repository.
- allow_forks: unrestricted forking
- no_public_forks: restrict forking to private forks (forks cannot be made public later)
- no_forks: deny all forking
- project? Project - The project of the repository.
- mainbranch? Branch - The mainbranch of the repository.
bitbucket: Repository_links
Hypermedia links related to the repository.
Fields
- forks? Link_1 - A link to a resource related to this object.
- downloads? Link_1 - A link to a resource related to this object.
- clone? Link_1[] - Clone URLs of the repository, one per protocol.
- self? Link_1 - A link to a resource related to this object.
- commits? Link_1 - A link to a resource related to this object.
- watchers? Link_1 - A link to a resource related to this object.
- html? Link_1 - A link to a resource related to this object.
- avatar? Link_1 - A link to a resource related to this object.
- hooks? Link_1 - A link to a resource related to this object.
- pullrequests? Link_1 - A link to a resource related to this object.
bitbucket: RepositoryGroupPermission
A group's permission for a given repository
Fields
- 'type string - Discriminator that identifies the type of this object.
- links? ProjectGroupPermissionLinks - Hypermedia links related to the permission
- permission? "read"|"write"|"admin"|"none" - The permission level granted on the repository group permission.
- group? Group - The group of the repository group permission.
- repository? Repository - The repository of the repository group permission.
bitbucket: RepositoryInheritanceState
A json object representing the repository's inheritance state values
Fields
- 'type string - Discriminator that identifies the type of this object.
- override_settings? record {} - The override settings of the repository inheritance state.
bitbucket: RepositoryPermission
A user's permission for a given repository
Fields
- 'type string - Discriminator that identifies the type of this object.
- permission? "read"|"write"|"admin"|"none" - The permission level granted on the repository permission.
- user? User - The user associated with the repository permission.
- repository? Repository - The repository of the repository permission.
bitbucket: RepositoryUserPermission
A user's direct permission for a given repository
Fields
- 'type string - Discriminator that identifies the type of this object.
- permission? "read"|"write"|"admin"|"none" - The permission level granted on the repository user permission.
- user? User - The user associated with the repository user permission.
- repository? Repository - The repository of the repository user permission.
- links? ProjectGroupPermissionLinks - Hypermedia links related to the permission
bitbucket: RunPipelineQueries
Represents the Queries record for the operation: runPipeline
Fields
- targetBranchToCreate? string - Optional branch name to create from the requested branch or commit target
- mergeDefaults boolean(default false) - Whether to merge repository-level defaults into the supplied YAML. Defaults to false
bitbucket: SearchCodeInTeamRepositoriesQueries
Represents the Queries record for the operation: searchCodeInTeamRepositories
Fields
- page Signed32(default 1) - Which page of the search results to retrieve
- searchQuery string - The search query
- pagelen Signed32(default 10) - How many search results to retrieve per page
bitbucket: SearchCodeInUserRepositoriesQueries
Represents the Queries record for the operation: searchCodeInUserRepositories
Fields
- page Signed32(default 1) - Which page of the search results to retrieve
- searchQuery string - The search query
- pagelen Signed32(default 10) - How many search results to retrieve per page
bitbucket: SearchCodeSearchResult
Fields
- file? CommitFile - The file of the search code search result
- contentMatches? SearchContentMatch[] - List of content matches of the search code search result
- contentMatchCount? int - Numeric content match count of the search code search result
- pathMatches? SearchSegment[] - List of path matches of the search code search result
- 'type? string - Discriminator that identifies the type of this object
bitbucket: SearchContentMatch
Fields
- lines? SearchLine[] - List of lines of the search content match
bitbucket: SearchForCodeInWorkspaceQueries
Represents the Queries record for the operation: searchForCodeInWorkspace
Fields
- page Signed32(default 1) - Which page of the search results to retrieve
- searchQuery string - The search query
- pagelen Signed32(default 10) - How many search results to retrieve per page
bitbucket: SearchLine
Fields
- line? Signed32 - Numeric line of the search line
- segments? SearchSegment[] - List of segments of the search line
bitbucket: SearchResultPage
Fields
- next? string - URL of the next page of results, if any
- size? int - Total number of items in the collection, when known
- previous? string - URL of the previous page of results, if any
- querySubstituted? boolean - Indicates whether the search result page has query substituted
- values? SearchCodeSearchResult[] - List of search code search result objects in this page of results
- page? Signed32 - Current page number
- pagelen? Signed32 - Number of items per page
bitbucket: SearchSegment
Fields
- 'match? boolean - Indicates whether the search segment has match
- text? string - The text of the search segment
bitbucket: Snippet
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- id? int - Unique numeric identifier of the snippet.
- title? string - The title of the snippet.
- scm? "git" - The DVCS used to store the snippet.
- created_on? string - Timestamp of the created on of the snippet.
- updated_on? string - Timestamp of the updated on of the snippet.
- owner? Account - The owner of the snippet.
- creator? Account - The creator of the snippet.
- is_private? boolean - Indicates whether the snippet is private.
bitbucket: SnippetComment
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- links? SnippetComment_links - Hypermedia links related to the snippet comment.
- snippet? Snippet - The snippet of the snippet comment.
bitbucket: SnippetComment_links
Hypermedia links related to the snippet comment.
Fields
- self? Link_1 - A link to a resource related to this object.
- html? Link_1 - A link to a resource related to this object.
bitbucket: SnippetCommit
Fields
- Fields Included from *BaseCommit
- hash string
- date string
- author Author
- committer Committer
- message string
- summary BaseCommit_summary
- parents BaseCommit[]
- type string
- anydata...
- links? SnippetCommit_links - Hypermedia links related to the snippet commit.
- snippet? Snippet - The snippet of the snippet commit.
bitbucket: SnippetCommit_links
Hypermedia links related to the snippet commit.
Fields
- self? Link_1 - A link to a resource related to this object.
- html? Link_1 - A link to a resource related to this object.
- diff? Link_1 - A link to a resource related to this object.
bitbucket: SshAccountKey
Fields
- Fields Included from *SshKey
- owner? Account - The owner of the ssh account key.
- expires_on? string - Timestamp of the expires on of the ssh account key.
- fingerprint? string - The SSH key fingerprint in SHA-256 format.
bitbucket: SshKey
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- uuid? string - The SSH key's immutable ID.
- 'key? string - The SSH public key value in OpenSSH format.
- comment? string - The comment parsed from the SSH key (if present)
- label? string - The user-defined label for the SSH key
- created_on? string - Timestamp of the created on of the ssh key.
- last_used? string - Timestamp of the last used of the ssh key.
- links? SshKey_links - Hypermedia links related to the ssh key.
bitbucket: SshKey_links
Hypermedia links related to the ssh key.
Fields
- self? Link_1 - A link to a resource related to this object.
bitbucket: SubjectTypes
The mapping of resource/subject types pointing to their individual event types
Fields
- workspace? SubjectTypesRepository - Event types available for this subject type
- repository? SubjectTypesRepository - Event types available for this subject type
bitbucket: SubjectTypesRepository
Event types available for this subject type
Fields
- links? SubjectTypesRepositoryLinks - Links to the event types of this subject type
bitbucket: SubjectTypesRepositoryLinks
Links to the event types of this subject type
Fields
- events? Link - A link to a resource related to this object
bitbucket: Tag
Fields
- Fields Included from *Ref
- message? string - The message associated with the tag, if available.
- date? string - The date that the tag was created, if available
- tagger? Author - The tagger of the tag.
bitbucket: Task
A task object
Fields
- updatedOn string - Timestamp of the updated on of the task
- creator Account - The creator of the task
- resolvedBy? Account - The resolved by of the task
- createdOn string - Timestamp of the created on of the task
- pending? boolean - Indicates whether the task has pending
- resolvedOn? string - The ISO8601 timestamp for when the task was resolved
- id? int - Unique numeric identifier of the task
- state "RESOLVED"|"UNRESOLVED" - The state of the task
- content TaskContent - The content of the task
bitbucket: TaskContent
The content of the task
Fields
- markup? "markdown"|"creole"|"plaintext" - The type of markup language the raw content is to be interpreted in
- raw? string - The text as it was typed by a user
- html? string - The user's content rendered as HTML
bitbucket: TaskRawContent
task raw content
Fields
- raw string - The task contents
bitbucket: Team
Fields
- Fields Included from *Account
- links AccountLinks
- created_on string
- display_name string
- uuid string
- type string
- anydata...
- links? TeamLinks - Hypermedia links related to the team.
bitbucket: TeamLinks
Fields
- Fields Included from *AccountLinks
- avatar Link1
- anydata...
- self? Link1 - The self of the team links.
- html? Link1 - The html of the team links.
- members? Link1 - The members of the team links.
- projects? Link1 - The projects of the team links.
- repositories? Link1 - The repositories of the team links.
bitbucket: Treeentry
Base type for most resource objects. It defines the common type element that identifies an object's type. It also identifies the element as Swagger's discriminator
Fields
- 'type string - Discriminator that identifies the type of this object.
- path? string - The path in the repository
- 'commit? Commit - The commit of the treeentry.
bitbucket: User
Fields
- Fields Included from *Account
- links AccountLinks
- created_on string
- display_name string
- uuid string
- type string
- anydata...
- links? UserLinks - Hypermedia links related to the user.
- account_id? string - The user's Atlassian account ID.
- account_status? string - The status of the account. Currently the only possible value is "active", but more values may be added in the future.
- has_2fa_enabled? boolean - Indicates whether the user has has 2fa enabled.
- nickname? string - Account name defined by the owner. Should be used instead of the "username" field. Note that "nickname" cannot be used in place of "username" in URLs and queries, as "nickname" is not guaranteed to be unique.
- is_staff? boolean - Indicates whether the user is staff.
bitbucket: UserLinks
Fields
- Fields Included from *AccountLinks
- avatar Link1
- anydata...
- self? Link1 - The self of the user links.
- html? Link1 - The html of the user links.
- repositories? Link1 - The repositories of the user links.
bitbucket: WebhookSubscription
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- uuid? string - The webhook's id
- url? string - The URL events get delivered to.
- description? string - A user-defined description of the webhook.
- subject_type? "repository"|"workspace" - The type of entity. Set to either
repositoryorworkspacebased on where the subscription is defined.
- subject? GenericObject - The subject of the webhook subscription.
- active? boolean - Indicates whether the webhook subscription has active.
- created_at? string - Timestamp of the created at of the webhook subscription.
- events? ("issue:comment_created"|"issue:created"|"issue:updated"|"pipeline:span_created"|"project:updated"|"pullrequest:approved"|"pullrequest:changes_request_created"|"pullrequest:changes_request_removed"|"pullrequest:comment_created"|"pullrequest:comment_deleted"|"pullrequest:comment_reopened"|"pullrequest:comment_resolved"|"pullrequest:comment_updated"|"pullrequest:created"|"pullrequest:fulfilled"|"pullrequest:push"|"pullrequest:rejected"|"pullrequest:unapproved"|"pullrequest:updated"|"repo:commit_comment_created"|"repo:commit_status_created"|"repo:commit_status_updated"|"repo:created"|"repo:deleted"|"repo:fork"|"repo:imported"|"repo:push"|"repo:transfer"|"repo:updated")[] - The events this webhook is subscribed to.
- secret_set? boolean - Indicates whether or not the hook has an associated secret. It is not possible to see the hook's secret. This field is ignored during updates.
- secret? string - The secret to associate with the hook. The secret is never returned via the API. As such, this field is only used during updates. The secret can be set to
nullor "" to remove the secret (or create a hook with no secret). Leaving out the secret field during updates will leave the secret unchanged. Leaving out the secret during creation will create a hook with no secret.
bitbucket: Workspace
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- links? Workspace_links - Hypermedia links related to the workspace.
- uuid? string - The workspace's immutable id.
- name? string - The name of the workspace.
- slug? string - The short label that identifies this workspace.
- is_private? boolean - Indicates whether the workspace is publicly accessible, or whether it is private to the members and consequently only visible to members.
- is_personal? boolean - Indicates whether the workspace belongs to an individual user.
- is_privacy_enforced? boolean - Indicates whether the workspace enforces private content, or whether it allows public content.
- forking_mode? "allow_forks"|"internal_only" - Controls the rules for forking repositories within this workspace.
- allow_forks: unrestricted forking
- internal_only: prevents forking of private repositories outside the workspace or to public repositories
- created_on? string - Timestamp of the created on of the workspace.
- updated_on? string - Timestamp of the updated on of the workspace.
bitbucket: Workspace_links
Hypermedia links related to the workspace.
Fields
- projects? Link_1 - A link to a resource related to this object.
- repositories? Link_1 - A link to a resource related to this object.
- snippets? Link_1 - A link to a resource related to this object.
- members? Link_1 - A link to a resource related to this object.
- self? Link_1 - A link to a resource related to this object.
- html? Link_1 - A link to a resource related to this object.
- owners? Link_1 - A link to a resource related to this object.
- avatar? Link_1 - A link to a resource related to this object.
bitbucket: WorkspaceAccess
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- administrator? boolean - The permission level the user has for the workspace. True if the user is an administrator, otherwise False.
- workspace? WorkspaceBase - The workspace of the workspace access.
bitbucket: WorkspaceBase
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- links? WorkspaceBase_links - Hypermedia links related to the workspace base.
- uuid? string - The workspace's immutable id.
- slug? string - The short label that identifies this workspace.
bitbucket: WorkspaceBase_links
Hypermedia links related to the workspace base.
Fields
- self? Link_1 - A link to a resource related to this object.
- avatar? Link_1 - A link to a resource related to this object.
bitbucket: WorkspaceMembership
Fields
- Fields Included from *GenericObject
- type string
- anydata...
- links? WorkspaceMembership_links - Hypermedia links related to the workspace membership.
- user? Account - The user associated with the workspace membership.
- workspace? Workspace - The workspace of the workspace membership.
bitbucket: WorkspaceMembership_links
Hypermedia links related to the workspace membership.
Fields
- self? Link_1 - A link to a resource related to this object.
Import
import ballerinax/bitbucket;Metadata
Released date: about 6 hours ago
Version: 2.0.1
License: Apache-2.0
Security
Direct vulnerabilities: No known direct vulnerabilities
Indirect vulnerabilities:
Checked on 2026-11-23 via OSV.dev
Compatibility
Platform: any
Ballerina version: 2201.13.0
GraalVM compatible: Yes
Pull count
Total: 40
Current verison: 0
Weekly downloads
Keywords
Vendor/Atlassian
Area/Developer Tools
Type/Connector
Contributors