From a952eb066e55ad3529e54974b4b6e5f5ac0a0d0d Mon Sep 17 00:00:00 2001 From: Chris Birk Date: Wed, 10 Jun 2015 22:30:45 -0400 Subject: [PATCH] add Project::createMilestone() --- src/Rossedman/Teamwork/Project.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Rossedman/Teamwork/Project.php b/src/Rossedman/Teamwork/Project.php index 43760e8..11b9bb1 100644 --- a/src/Rossedman/Teamwork/Project.php +++ b/src/Rossedman/Teamwork/Project.php @@ -138,6 +138,18 @@ public function milestones($args = null) return $this->client->get("$this->endpoint/$this->id/milestones", $args)->response(); } + /** + * Create milestone associated with this project + * POST /projects/{project_id}/milestones.json + * + * @param $args + * + * @return mixed + */ + public function createMilestone($args) { + return $this->client->post("$this->endpoint/$this->id/milestones", ['milestone' => $args])->response(); + } + /** * Tasklists * GET /projects/{project_id}/tasklists.json