Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Create multiple users

Please read this page before using this resource.

Create multiple new users with a HTTP POST request, similar to adding a single user, but instead listing multiple users in an array.

Resource URL:

https://<instance_name>.fuseuniversal.com/api/v4.3/manage/users

Request

Request header parameters

Authorisation is required.

Request parameters

Mandatory parameters required to create a new user include username, password and password_confirmation.

  • Mandatory parameters as well as all the optional parameters are described in the User Profile Fields guide.

Use the request examples on this page as a reference.

The request example does not include all possible parameters.

Settings and profile options will vary depending on requirements.

Response

The response for this API endpoint contains the user registration that was created. Security-sensitive fields may not be returned in the response.

The Fuse userID is the UID automatically generated by the system when a user is created. This cannot be changed. All other user attributes can be changed.

Please refer to the Response Codes guide for more information.

Example request #1

Request URL example

https://<instance_name>.fuseuniversal.com/api/v4.3/manage/users?auth_token=<valid_auth_token>

Request body

{
    "users": [
        {
            "username": "testuser1",
            "password_confirmation": "Password1234!",
            "password": "Password1234!",
            "email": "testuser1@net.com",
            "role": "user",
            "profile": {
                "FirstName": "test1",
                "LastName": "user1"
            },
            "plain_text_emails": true,
            "hidden_from_leaderboard": true,
            "accessibility_enabled": false,
            "accessibility_theme": "theme_v1",
            "settings": {
                "default_locale": "en",
                "instant_emails": true,
                "send_instant_for_comment": true,
                "send_instant_for_share": true,
                "send_instant_for_like": true,
                "send_instant_for_revision": true,
                "digest_emails": "on",
                "notification_block_in_digest": true
            }
        },
        {
            "username": "testuser2",
            "password_confirmation": "Password1234@",
            "password": "Password1234@",
            "email": "testuser2@net.com",
            "role": "user",
            "profile": {
                "FirstName": "test2",
                "LastName": "user2"
            },
            "plain_text_emails": true,
            "hidden_from_leaderboard": true,
            "accessibility_enabled": false,
            "accessibility_theme": "theme_v1",
            "settings": {
                "default_locale": "en",
                "instant_emails": true,
                "send_instant_for_comment": true,
                "send_instant_for_share": true,
                "send_instant_for_like": true,
                "send_instant_for_revision": true,
                "digest_emails": "on",
                "notification_block_in_digest": true
            }
        },
        {
            "username": "testuser3",
            "password_confirmation": "Password1234#",
            "password": "Password1234#",
            "email": "testuser3@net.com",
            "role": "user",
            "profile": {
                "FirstName": "test3",
                "LastName": "user3"
            },
            "plain_text_emails": true,
            "hidden_from_leaderboard": true,
            "accessibility_enabled": false,
            "accessibility_theme": "theme_v1",
            "settings": {
                "default_locale": "en",
                "instant_emails": true,
                "send_instant_for_comment": true,
                "send_instant_for_share": true,
                "send_instant_for_like": true,
                "send_instant_for_revision": true,
                "digest_emails": "on",
                "notification_block_in_digest": true
            }
        }
    ]
}
  • No labels