fix(api): change task ID runs success status from 200 to 201
parent
89b7547b25
commit
6fb8a67ff8
|
|
@ -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]
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue