Ruby
Select your Platform:
Client SDKs
Backend SDKs
User Bulk Upsert
Confused about "User Bulk Upsert"?
Let us know how we can improve our documentation:
LAST EDIT Apr 08 2021
Using the server-side APIs you can insert or update users in bulk. Users included in the request payload are either created or updated if they already exists.
You can use this endpoint to keep your users in sync or to perform small data imports (for large imports it is highly recommended to use the data import via JSON).
1
2
3
4
5
6
const users = [
{id: 1, name: "james", role: "admin", image: "[object Object]"},
{id: 2, name: "jack", image: "[object Object]"},
];
await client.upsertUsers(users);
The bulk upsert user endpoint allows you to upsert up to 100 users per request, payloads larger than that will be discarded with an error.