fix(api): change task ID runs success status from 200 to 201

pull/15592/head
Gavin Cabbage 2019-10-26 00:03:03 -04:00
parent 89b7547b25
commit 6fb8a67ff8
No known key found for this signature in database
GPG Key ID: C8939459AF221D32
2 changed files with 2 additions and 1 deletions

View File

@ -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]

View File

@ -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
}