From c48f277279e666b968f6de2fcb81e948fc1061ef Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Tue, 29 Dec 2020 20:11:07 -0500 Subject: [PATCH] Document 410 on POST /User --- src/Tgstation.Server.Host/Controllers/UserController.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Tgstation.Server.Host/Controllers/UserController.cs b/src/Tgstation.Server.Host/Controllers/UserController.cs index f0f3c80888..6acadfae0a 100644 --- a/src/Tgstation.Server.Host/Controllers/UserController.cs +++ b/src/Tgstation.Server.Host/Controllers/UserController.cs @@ -182,10 +182,12 @@ namespace Tgstation.Server.Host.Controllers /// A resulting in the of the operation. /// updated successfully. /// Requested does not exist. + /// Requested does not exist. [HttpPost] [TgsAuthorize(AdministrationRights.WriteUsers | AdministrationRights.EditOwnPassword | AdministrationRights.EditOwnOAuthConnections)] [ProducesResponseType(typeof(Api.Models.User), 200)] [ProducesResponseType(typeof(ErrorMessage), 404)] + [ProducesResponseType(typeof(ErrorMessage), 410)] #pragma warning disable CA1502 // TODO: Decomplexify #pragma warning disable CA1506 public async Task Update([FromBody] UserUpdate model, CancellationToken cancellationToken)