/// <summary> /// Updates (Edits) a version with new details. /// </summary> /// <param name="versionUri">The URI of the version to edit.</param> /// <param name="versionInput">Details about the changes to make to the version.</param> /// <returns>Detailed information about the version that has just been updated.</returns> /// <exception cref="WebServiceException">If the calling user does not have permission to create versions in the project.</exception> public JiraVersion UpdateVersion(Uri versionUri, VersionInput versionInput) { var json = VersionInputJsonGenerator.Generate(versionInput); return(client.Put <JiraVersion>(versionUri.ToString(), json)); }
/// <summary> /// Creates a new version in a project. /// </summary> /// <param name="versionInput">Details about the version to create.</param> /// <returns>Detailed information about the version that has just been created.</returns> /// <exception cref="WebServiceException">If the calling user does not have permission to create versions in the project.</exception> public JiraVersion CreateVersion(VersionInput versionInput) { var json = VersionInputJsonGenerator.Generate(versionInput); return(client.Post <JiraVersion>(baseVersionUri.ToString(), json)); }