Update existing goal

PUT {{baseUrl}}/goals/:id

Updates an existing goal.

Request Body

{"title"=>"<string>", "assignee"=>"<object>", "type"=>"<object>", "expected_outcome"=>"<object>", "duration"=>"<object>", "interval"=>"<string>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;success&quot;:true,&quot;statusCode&quot;:20000,&quot;statusText&quot;:&quot;OK&quot;,&quot;service&quot;:&quot;statistics-goals-api&quot;,&quot;data&quot;:{&quot;goal&quot;:{&quot;id&quot;:&quot;5665cef556ddff22606fc8f6c0004807&quot;,&quot;owner_id&quot;:987654,&quot;title&quot;:&quot;Some example goal&quot;,&quot;type&quot;:{&quot;name&quot;:&quot;Deals started&quot;,&quot;params&quot;:{&quot;pipeline_id&quot;:[5,2],&quot;activity_type_id&quot;:[9]}},&quot;assignee&quot;:{&quot;type&quot;:&quot;company&quot;,&quot;id&quot;:123456},&quot;interval&quot;:&quot;weekly&quot;,&quot;duration&quot;:{&quot;start&quot;:&quot;2019-11-01&quot;,&quot;end&quot;:&quot;2020-10-30&quot;},&quot;expected_outcome&quot;:{&quot;target&quot;:100,&quot;tracking_metric&quot;:&quot;quantity&quot;},&quot;is_active&quot;:false,&quot;report_ids&quot;:[&quot;f37bd66a2ab64d28ff6a9b6d2289813a&quot;]}}}