diff --git a/routers/api/v1/user/app.go b/routers/api/v1/user/app.go index d02b8cea21e2..547730ea57e3 100644 --- a/routers/api/v1/user/app.go +++ b/routers/api/v1/user/app.go @@ -85,7 +85,7 @@ func CreateAccessToken(ctx *context.APIContext, form api.CreateAccessTokenOption // name: // type: string // responses: - // "200": + // "201": // "$ref": "#/responses/AccessToken" t := &models.AccessToken{ diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index d0303040c56f..72665e2b6d2d 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -11128,7 +11128,7 @@ } ], "responses": { - "200": { + "201": { "$ref": "#/responses/AccessToken" } }