Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-13021

Documentation update for the POST /rest/git/1.0/projects/{projectKey}/repos/{repositorySlug}/tags endpoint - startPoint parameter

    XMLWordPrintable

Details

    • 2
    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      Documentation for the POST /rest/git/1.0/projects/{projectKey}/repos/{repositorySlug}/tags endpoint should be updated to indicate that the value passed for the startPoint parameter should be the SHA of the item to be tagged.

      The following line in the API description can be changed from:

      'LIGHTWEIGHT' and 'ANNOTATED' are the two type of tags that can be created. The 'startPoint' can either be a ref or a 'commit'.

      to:

      'LIGHTWEIGHT' and 'ANNOTATED' are the two type of tags that can be created.
      The 'startPoint' is a full SHA1 for the object to be tagged.

       

      The sample can be changed from:

      {
          "force": "true",
          "message": "A new release tag",
          "name": "release-tag",
          "startPoint": "refs/heads/master",
          "type": "ANNOTATED"
      }
      

      to:

      {
          "force": "true",
          "message": "A new release tag",
          "name": "release-tag",
          "startPoint": "ffffb700d5b73a37f7a2058ddd6795bbaf73b09c",
          "type": "ANNOTATED"
      }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            jmariano@atlassian.com JP Mariano
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: