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
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"success":true,"statusCode":20000,"statusText":"OK","service":"statistics-goals-api","data":{"goal":{"id":"5665cef556ddff22606fc8f6c0004807","owner_id":987654,"title":"Some example goal","type":{"name":"Deals started","params":{"pipeline_id":[5,2],"activity_type_id":[9]}},"assignee":{"type":"company","id":123456},"interval":"weekly","duration":{"start":"2019-11-01","end":"2020-10-30"},"expected_outcome":{"target":100,"tracking_metric":"quantity"},"is_active":false,"report_ids":["f37bd66a2ab64d28ff6a9b6d2289813a"]}}}