Actions53
- Channel Actions
- Direct Message Actions
- Message Actions
- User Actions
Direct Message → Close
AI-generatedSummary
Close a direct message conversation
Inputs
- roomId (required) — The ID of the direct message room to close
Output shape
a single record representing the closed DM
Returns the closed DM object; may include error fields if the request fails
Examples
Example 1: Close an active DM with a teammate
roomId set to the DM's ID; operation set to close
Example 2: Close multiple DMs in bulk
Loop over a list of roomIds with operation close
Example 3: Close a DM that was previously opened
Ensure roomId points to the DM that is currently open