All URIs are relative to https:///api/2.0
Method
HTTP request
Description
Updates the repo to the given branch or tag
crate::models::GetRepoResponse create_repo(create_repo_request) Create a repo
Creates a repo in the workspace and links it to the remote Git repo specified. Note that repos created programmatically must be linked to a remote Git repo, unlike repos created in the browser.
Name
Type
Description
Required
Notes
Details required to create and clone a repo object
crate::models::GetRepoResponse
basicAuth, bearerAuth
HTTP request headers
Content-Type: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_repo(repo_id) Deletes the repo
Deletes the specified repo
Name
Type
Description
Required
Notes
The ID for the corresponding repo to access.
(empty response body)
basicAuth, bearerAuth
HTTP request headers
Content-Type: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::GetRepoResponse get_repo(repo_id) Get a repo
Returns the repo with the given repo ID.
Name
Type
Description
Required
Notes
The ID for the corresponding repo to access.
crate::models::GetRepoResponse
basicAuth, bearerAuth
HTTP request headers
Content-Type: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::GetReposResponse get_repos(path_prefix, next_page_token) Get repos
Returns repos that the calling user has Manage permissions on. Results are paginated with each page containing twenty repos.
Name
Type
Description
Required
Notes
Filters repos that have paths starting with the given path prefix.
Token used to get the next page of results. If not specified, returns the first page of results as well as a next page token if there are more results.
crate::models::GetReposResponse
basicAuth, bearerAuth
HTTP request headers
Content-Type: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::GetRepoResponse update_repo(repo_id, update_repo_request) Updates the repo to the given branch or tag
Updates the repo to a different branch or tag, or updates the repo to the latest commit on the same branch.
Name
Type
Description
Required
Notes
The ID for the corresponding repo to access.
Details required to update the repo
crate::models::GetRepoResponse
basicAuth, bearerAuth
HTTP request headers
Content-Type: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]