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"}]}