This is an old revision of the document!
{ "user_id":0, "username":"demo2", "password":"demopassword", "realm_id":1, "profile_id":1, "token":"b4c6ac81-8c7c-4802-b50a-0a6380555b50" }
Item | Typical Value | Comment |
---|---|---|
user_id | 0 | The special value of 0 (Zero) will make the owner of the token the owner of the Permanent User. |
username | demo2 | Unique username. Can even be an email address. See discussion about the suffix later in this document. |
password | demopassword | Password for user. No restrictions is placed on the length. |
realm_id | 1 | The ID of the Realm the user should belong to. |
profile_id | 1 | The ID of the Profile the user should belong to. |
token | b4c6ac81-8c7c-4802-b50a-0a6380555b50 | The API token of the user who initiate the API call |
{ "items": [ { "id": 1, "name": "demo1" } ], "success": true } * We can either use **realm_id = 1** or **realm = demo1** when calling the API. The back-end is smart enough to convert the Realm name to to the Realm ID when adding the user.
{ "items": [ { "id": 1, "name": "demo1", "data_cap_in_profile": false, "time_cap_in_profile": false } ], "success": true }
{ "user_id":0, "username":"demo2", "password":"demopassword", "realm":"demo1", "profile":"demo1", "token":"b4c6ac81-8c7c-4802-b50a-0a6380555b50" }
{ "success": true, "data": { "user_id": 44, "username": "demo2@demo1", "password": "demopassword", "realm": "demo1", "profile": "demo1", "token": "", "language_id": "_", "country_id": "4", "realm_id": 1, "profile_id": 1, "active": 1 } }