repositories Endpoint - 1.0

Bitbucket Cloud v1 APIs are deprecated

Bitbucket Cloud REST API version 1 is deprecated effective 30 June 2018. All 1.0 APIs will be removed from the REST API permanently on 12 April 2019. Read the deprecation notice. Or you can jump right to the version 2.0 REST API documentation.

The repositories endpoint has a number of resources you can use to manage Bitbucket Cloud repository resources. For all repository resources, you supply a  repo_slug that identifies the specific repository.  For example, the repo_slug for the repository https://bitbucket.org/tortoisehg/thg is thg.  The following resources are available on repositories:

The repositories endpoint allow you to control aspects of a repository.  An individual respository structure has the following fields:

Field Description
scm The source control manager for the repository.
has_wiki A boolean indicating if the repository has a wiki.
last_updated A date timestamp of the last update to this repository.
no_forks A boolean indicating if forks are allowed.
forks_count Number of forks of this repository.
created_on A date timestamp of this repository's creation date.
owner The owner's account name.
logo The repository's logo file.
email_mailinglist The email for the repository.
is_mq A boolean indicating if the repository is a patch queue or not. This is valid only for Mercurial repositories.
size An integer indicating the size of the repository in bytes.
read_only A boolean indicating if the repository is read_only or not.
fork_of Contains null if this repository is not a fork otherwise contains a repository structure.
mq_of Contains null if this repository is not a patch queue otherwise contains a repository structure. This value is only valid for Mercurial repositories.
followers_count An integer representing the number of followers.
state Not used.
utc_created_on The Universal Timestamp Coordinate for when the repository was created.
website A string containing the website if defined.
description A string containing the repository's description.
has_issues A boolean indicating a repository has an issue tracker.
is_fork A boolean indicating a repository is a fork.
slug The slug used to identify the repository.
is_private A boolean indicating that a repository is private.
name The name of the repository.
language The main language of the repository source files.
utc_last_updated The Universal Timestamp Coordinate for the last update.
email_writers A boolean indicating access is available to individuals with specific email addresses.
no_public_forks Boolean indicating if the repository allows public forks.
creator The creator's account name. This is typically null for repositories that belong to an individual account.
resource_uri The address of the repository.
Last modified on Jun 14, 2018

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.