The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

change old commit points through API's

vijay
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 22, 2018

I am using Atlassian Stash(bitbucket server) to manage my git repository.
I have a requirement to change old commit points through API's

I am using through curl

curl -u "username":"password" -ns -H "Content-Type: application/json" -X POST -d '{"force": "true", "name": , "traget": { "hash": "hex_code" }' https:URL/repos/project_name/tags

Facing this error:

{"errors":[{"context":null,"message":"Unexpected end-of-input: expected close marker for OBJECT (from [Source: com.atlassian.stash.internal.web.util.web.CountingServletInputStream@17b72e23; line: 1, column: 0])\n at [Source: com.atlassian.stash.internal.web.util.web.CountingServletInputStream@17b72e23; line: 1, column: 205]","exceptionName":"org.codehaus.jackson.JsonParseException"}]}

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 1, 2018

 

Hi vijay, welcome to the Community!

It looks like you might be trying to re-write history but you can't do that though an API. We need to know what you're trying to achieve before we can help you further with this.

At a first glance, there's a few issues we saw:

  1. data Dict is not closed

  2. Null values

  3. Misspelling of target

Please fix that and let us know how it goes!

Best regards,

Ana

TAGS
AUG Leaders

Atlassian Community Events