Actions60
- User Actions
- Channel Actions
- Accept Invite
- Add Members
- Add Moderators
- Archive
- Ban User
- Create
- Delete
- Delete File
- Delete Image
- Demote Moderators
- Disable Slow Mode
- Enable Slow Mode
- Get Config
- Hide
- Invite Members
- Mark Read
- Mark Unread
- Mute
- Mute Status
- Pin
- Query Channels
- Query Members
- Reject Invite
- Remove Members
- Send Action
- Send File
- Send Image
- Show
- Stop Watching
- Truncate
- Unarchive
- Unban User
- Unmute
- Unpin
- Update
- Watch
- Message Actions
- Moderation Actions
User → Upsert Multiple
AI-generatedSummary
Upsert multiple users in Stream Chat by providing an array of user objects; creates new users or updates existing ones based on the provided data.
Inputs
- Users Data (required) — A JSON array of user objects, each representing a user to upsert. Example format: [{"ID": "user1", "name": "John"}, {"ID": "user2", "name": "Jane"}]. The objects should contain the user IDs and any other user-related fields to create or update.
Output shape
a single JSON object containing the response from the Stream Chat API for the bulk upsert operation; this includes the users' data as updated or created.
The operation processes all input items together if multiple items are given. Errors will throw unless 'Continue On Fail' is enabled, in which case errors for individual items are returned alongside successful results.