/// <summary> /// Update existing project // //PUT /projects/#{project_id} //HTTP Response: 200 OK //Location: /projects/#{project_id} // //Post similar XML as with create a new project, but include client-id as part of the project. For activating a project a separate method needs to be used. /// </summary> /// <param name="projectID"></param> /// <param name="xml"></param> /// <returns></returns> public string UpdateProject(int projectID, string xml) { var request = new PutService(HarvestConnection, "projects/{0}", projectID); return PerformRequest(request,xml); }
public string ToggleProjectState(int projectID) { var request = new PutService(HarvestConnection, @"projects/{0}/toggle", projectID); return PerformRequest(request); }
public string UpdateClient(int clientID, string xml) { var request = new PutService(HarvestConnection, "clients/{0}", clientID); return PerformRequest(request, xml); }