diff --git a/libs/wire-api/src/Wire/API/ErrorDescription.hs b/libs/wire-api/src/Wire/API/ErrorDescription.hs index 888b5289a39..ba54332ca98 100644 --- a/libs/wire-api/src/Wire/API/ErrorDescription.hs +++ b/libs/wire-api/src/Wire/API/ErrorDescription.hs @@ -370,3 +370,5 @@ type BroadcastLimitExceeded = 400 "too-many-users-to-broadcast" "Too many users to fan out the broadcast event to." + +type InvalidAction = ErrorDescription 403 "invalid-actions" "The specified actions are invalid." diff --git a/libs/wire-api/src/Wire/API/Routes/Public/Galley.hs b/libs/wire-api/src/Wire/API/Routes/Public/Galley.hs index 74b1f33d9c7..8ee2ed41f03 100644 --- a/libs/wire-api/src/Wire/API/Routes/Public/Galley.hs +++ b/libs/wire-api/src/Wire/API/Routes/Public/Galley.hs @@ -294,6 +294,15 @@ type ConversationAPI = :<|> Named "add-members-to-conversation" ( Summary "Add qualified members to an existing conversation." + :> CanThrow ConvNotFound + :> CanThrow ActionDenied + :> CanThrow (InvalidOp "Invalid operation") + :> CanThrow InvalidAction + :> CanThrow TooManyMembers + :> CanThrow ConvAccessDenied + :> CanThrow NotATeamMember + :> CanThrow NotConnected + :> CanThrow MissingLegalholdConsent :> ZLocalUser :> ZConn :> "conversations"