Repositories

List repository forks

Changed on

Returns a paginated list of all the forks of the specified repository.

get/repositories/{workspace}/{repo_slug}/forks

Request

  • Base URL
    https://api.bitbucket.org/2.0
  • URL
    https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/forks
  • Auth
    • OAuth 2
      Authorization code: https://bitbucket.org/site/oauth2/authorize
      Token URL: https://bitbucket.org/site/oauth2/access_token scopes: repository
    • or HTTP basic
    • or API key in header Authorization

Query parameters

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
qstring

Query string to narrow down the response as per filtering and sorting.

sortstring

Field by which the results should be sorted as per filtering and sorting.

Response

All forks.

sizeinteger

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.

pageinteger

Page number of the current results. This is an optional element that is not provided in all responses.

pageleninteger

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.

nextstring uri

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.

previousstring uri

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.

Changes

    • warning

      removed the optional property /////////////// from the response with the status

    • warning

      removed the optional property //////////// from the response with the status

    • warning

      removed the optional property ///// from the response with the status

    • warning

      removed the optional property /////////// from the response with the status

    • warning

      added the new rebase_fast_forward enum value to the ////// response property for the response status

    • warning

      added the new rebase_merge enum value to the ////// response property for the response status

    • warning

      added the new squash_fast_forward enum value to the ////// response property for the response status

    • info

      added the optional property /////////// to the response with the status