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"}]}
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:
data
Dict is not closed
Null values
Misspelling of target
Please fix that and let us know how it goes!
Best regards,
Ana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.