diff --git a/CHANGELOG.md b/CHANGELOG.md index 4de0a7332e..53c89ff84d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ 1. [15549](https://github.com/influxdata/influxdb/pull/15549): UI/Task edit functionality fixed 1. [15559](https://github.com/influxdata/influxdb/pull/15559): Exiting a configuration of a dashboard cell now properly renders the cell content 1. [15556](https://github.com/influxdata/influxdb/pull/15556): Creating a check now displays on the checklist +1. [15592](https://github.com/influxdata/influxdb/pull/15592): Changed task runs success status code from 200 to 201 to match Swagger documentation. ## v2.0.0-alpha.18 [2019-09-26] diff --git a/http/task_service.go b/http/task_service.go index c214c0f6d5..d4eb1ffeac 100644 --- a/http/task_service.go +++ b/http/task_service.go @@ -954,7 +954,7 @@ func (h *TaskHandler) handleForceRun(w http.ResponseWriter, r *http.Request) { h.HandleHTTPError(ctx, err, w) return } - if err := encodeResponse(ctx, w, http.StatusOK, newRunResponse(*run)); err != nil { + if err := encodeResponse(ctx, w, http.StatusCreated, newRunResponse(*run)); err != nil { logEncodingError(h.logger, r, err) return }