{"action":"closed","issue":{"url":"https://api.github.com/repos/zapadi/redmine-net-api/issues/99","labels_url":"https://api.github.com/repos/zapadi/redmine-net-api/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/zapadi/redmine-net-api/issues/99/comments","events_url":"https://api.github.com/repos/zapadi/redmine-net-api/issues/99/events","html_url":"https://github.com/zapadi/redmine-net-api/issues/99","id":99439342,"number":99,"title":"Updating version","user":{"login":"DavidSpackman","id":5021654,"avatar_url":"https://avatars.githubusercontent.com/u/5021654?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidSpackman","html_url":"https://github.com/DavidSpackman","followers_url":"https://api.github.com/users/DavidSpackman/followers","following_url":"https://api.github.com/users/DavidSpackman/following{/other_user}","gists_url":"https://api.github.com/users/DavidSpackman/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidSpackman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidSpackman/subscriptions","organizations_url":"https://api.github.com/users/DavidSpackman/orgs","repos_url":"https://api.github.com/users/DavidSpackman/repos","events_url":"https://api.github.com/users/DavidSpackman/events{/privacy}","received_events_url":"https://api.github.com/users/DavidSpackman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"zapadi","id":11489881,"avatar_url":"https://avatars.githubusercontent.com/u/11489881?v=3","gravatar_id":"","url":"https://api.github.com/users/zapadi","html_url":"https://github.com/zapadi","followers_url":"https://api.github.com/users/zapadi/followers","following_url":"https://api.github.com/users/zapadi/following{/other_user}","gists_url":"https://api.github.com/users/zapadi/gists{/gist_id}","starred_url":"https://api.github.com/users/zapadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zapadi/subscriptions","organizations_url":"https://api.github.com/users/zapadi/orgs","repos_url":"https://api.github.com/users/zapadi/repos","events_url":"https://api.github.com/users/zapadi/events{/privacy}","received_events_url":"https://api.github.com/users/zapadi/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-08-06T13:53:12Z","updated_at":"2015-08-07T05:39:39Z","closed_at":"2015-08-07T05:39:39Z","body":"Trying to update version using the following code\r\n\r\n    string host = \"\";\r\n    string apiKey = \"\";\r\n\tint VerId = 1;\r\n\t\r\n\tvar manager = new RedmineManager(host, apiKey);\r\n   \r\n    Redmine.Net.Api.Types.Version version = manager.GetObject<Redmine.Net.Api.Types.Version>(VerId.ToString(), null);\r\n    version.Description = \"Updated Description\";\r\n    version.Status = VersionStatus.closed;\r\n\t\r\n    manager.UpdateObject(VerId.ToString(), version, null);\r\n\r\nUpdateObject() generates the address in the format *PUT /projects/:project_id/versions.:format*\r\n\r\nDoesn't match the PUT URL for updating the version. http://www.redmine.org/projects/redmine/wiki/Rest_Versions\r\n\r\n*PUT /versions/:id.:format*\r\n\r\nChanging \r\n\r\nif (type == typeof(Version) || type == typeof(IssueCategory) || type == typeof(ProjectMembership))\r\nto \r\nif (type == typeof(IssueCategory) || type == typeof(ProjectMembership))\r\ngenerates the correct URL and updates the version information"}}