diff --git a/src/Api/Vault/Controllers/CiphersController.cs b/src/Api/Vault/Controllers/CiphersController.cs index 80a453dfc4..cd70d7a6c0 100644 --- a/src/Api/Vault/Controllers/CiphersController.cs +++ b/src/Api/Vault/Controllers/CiphersController.cs @@ -560,7 +560,7 @@ public class CiphersController : Controller [HttpPut("{id}/collections")] [HttpPost("{id}/collections")] - public async Task PutCollections(Guid id, [FromBody] CipherCollectionsRequestModel model) + public async Task PutCollections(Guid id, [FromBody] CipherCollectionsRequestModel model) { var userId = _userService.GetProperUserId(User).Value; var cipher = await GetByIdAsync(id, userId); @@ -572,6 +572,10 @@ public class CiphersController : Controller await _cipherService.SaveCollectionsAsync(cipher, model.CollectionIds.Select(c => new Guid(c)), userId, false); + + var updatedCipherCollections = await GetByIdAsync(id, userId); + var response = new CipherResponseModel(updatedCipherCollections, _globalSettings); + return response; } [HttpPut("{id}/collections-admin")]