Create a batch of users
POSThttps://embedded.runalloy.com/2024-03//users/batch
Creates a new user in your Embedded account. The user record acts like a "container" to store all the integrations, workflows, and credentials for any given user. Returns a user identifier.
Request
Header Parameters
Authorization stringrequired
Default value: bearer YOUR_API_KEY
Your Embedded API key for authorization
- application/json
Body
users json
Default value: [{ username: 'user123', fullName: 'Joe Smoe' }, { username: 'user456' }, { username: 'janedoe', fullName: 'Jane Doe' }]
An array of username
and fullName
to be created. Note that username
is mandatory but fullName
is optional. Limited to 1000 users at a time.
Responses
- 200
- 400
- 401
200
- application/json
- Schema
- Example (from schema)
- Result
Schema
message string
invalidUsers
object[]
{
"message": "success",
"invalidUsers": [
{
"fullName": "Missing Username"
}
]
}
{
"message":"success",
"invalidUsers":[{"fullName":"Missing Username"},{"username": "alreadyexists123"}]
}
400
- application/json
- Schema
- Example (from schema)
- Result
Schema
- MOD1
- MOD2
oneOf
message string
message string
{}
{
"message": "No valid users provided"
}
401
- application/json
- Schema
- Example (from schema)
- Result
Schema
object
{}
{}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L 'https://embedded.runalloy.com/2024-03/users/batch' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"users": "[{ \tusername: '\''user123'\'', \tfullName: '\''Joe Smoe'\'' }, { \tusername: '\''user456'\'' }, { \tusername: '\''janedoe'\'', \tfullName: '\''Jane Doe'\'' }]"
}'
ResponseClear