Skip to main content
POST
/
v2
/
UserCreateBulk
Create multiple users in bulk
curl --request POST \
  --url http://localhost:3000/v2/UserCreateBulk \
  --header 'Content-Type: application/json' \
  --header 'X-Bunker-Token: <api-key>' \
  --data '
{
  "records": [
    {
      "profile": {},
      "groupname": "<string>",
      "groupid": 123,
      "rolename": "<string>",
      "roleid": 123
    }
  ],
  "slidingtime": "<string>",
  "finaltime": "<string>",
  "request_metadata": {}
}
'
{
  "status": "ok",
  "created": [
    {
      "token": "<string>",
      "profile": {}
    }
  ]
}

Authorizations

X-Bunker-Token
string
header
required

API token for authentication

Body

application/json
records
object[]
required
slidingtime
string

Sliding time period for all users in bulk

finaltime
string

Expiration time for all users in bulk

request_metadata
object

Additional metadata for the request

Response

200 - application/json

Users created successfully

status
string
Example:

"ok"

created
object[]