mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 00:22:50 -05:00
collection update model
This commit is contained in:
@ -84,7 +84,7 @@ namespace Bit.Api.Public.Controllers
|
||||
[ProducesResponseType(typeof(CollectionResponseModel), (int)HttpStatusCode.OK)]
|
||||
[ProducesResponseType(typeof(ErrorResponseModel), (int)HttpStatusCode.BadRequest)]
|
||||
[ProducesResponseType((int)HttpStatusCode.NotFound)]
|
||||
public async Task<IActionResult> Put(Guid id, [FromBody]CollectionCreateUpdateRequestModel model)
|
||||
public async Task<IActionResult> Put(Guid id, [FromBody]CollectionUpdateRequestModel model)
|
||||
{
|
||||
var existingCollection = await _collectionRepository.GetByIdAsync(id);
|
||||
if(existingCollection == null || existingCollection.OrganizationId != _currentContext.OrganizationId)
|
||||
|
Reference in New Issue
Block a user