1
0
mirror of https://github.com/bitwarden/server synced 2026-02-12 14:33:49 +00:00

Use POST instead of PUT

This commit is contained in:
Thomas Rittson
2026-01-15 15:53:58 +10:00
parent 732659ed76
commit 146ecfce90
2 changed files with 12 additions and 12 deletions

View File

@@ -273,7 +273,7 @@ public class MembersController : Controller
/// Revoke a member's access to an organization.
/// </summary>
/// <param name="id">The ID of the member to be revoked.</param>
[HttpPut("{id}/revoke")]
[HttpPost("{id}/revoke")]
[ProducesResponseType((int)HttpStatusCode.OK)]
[ProducesResponseType(typeof(ErrorResponseModel), (int)HttpStatusCode.BadRequest)]
[ProducesResponseType((int)HttpStatusCode.NotFound)]
@@ -307,7 +307,7 @@ public class MembersController : Controller
/// Restores a previously revoked member of the organization.
/// </remarks>
/// <param name="id">The identifier of the member to be restored.</param>
[HttpPut("{id}/restore")]
[HttpPost("{id}/restore")]
[ProducesResponseType((int)HttpStatusCode.OK)]
[ProducesResponseType(typeof(ErrorResponseModel), (int)HttpStatusCode.BadRequest)]
[ProducesResponseType((int)HttpStatusCode.NotFound)]