Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

change old commit points through API's

vijay 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

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events