Bulk imports users. This request performs minimal validation and runs batch inserts of users with the expectation that each user does not yet exist and each registration corresponds to an existing FusionAuth Application. This is done to increases the insert performance. Therefore, if you encounter an error due to a database key violation, the response will likely offer a generic explanation. If you encounter an error, you may optionally enable additional validation to receive a JSON response body with specific validation errors. This will slow the request down but will allow you to identify the cause of the failure. See the validateDbConstraints request parameter.

post/api/user/import

Request

  • Base URL: http://localhost:9011
  • URL: http://localhost:9011/api/user/import
  • Auth: API key in header Authorization

Request body

encryptionSchemestring
factorinteger
validateDbConstraintsboolean

Example request

{
  "users": [
    {
      "preferredLanguages": [
        "en_US"
      ],
      "birthDate": "2007-12-03",
      "timezone": "America/Denver",
      "registrations": [
        {
          "preferredLanguages": [
            "en_US"
          ],
          "timezone": "America/Denver"
        }
      ]
    }
  ]
}

Response

Success

Changes

No recorded changes to this operation across all 1 revision of this API.