Create a user
|
POST /api/v1/billing/user/manage |
When a user is created, they receive the default permissions for their user type, as defined by the system setting default_permissions_<user type>. Module permissions specified in modules are added to these defaults. Video analytics permissions are not assigned if video analytics is not configured on the platform. User permissions can be changed using VMS Billing / User (billing) / Update a user by an external system or in the VMS Administrator interface.
{
"login": "test@mail.com",
"password": "qweasdzxc",
"type": "type_value",
"billing_info": {
"billing_id": "123123123",
"billing_extra": []
},
"status": "active",
"properties": [
{
"type": "phone",
"value": "+80283289362"
}
],
"modules": [
"bridges",
"camera-agents"
]
}
Method parameters
string login required , Login used to sign in to VMS. Any unique string; it does not have to be an email address. The external system sets the login
string password required , Password, up to 100 characters. The external system sets the password; VMS stores only its hash
bool can_update_password, Whether the user can change their own password. Defaults to `true`
string type required , User type, up to 50 characters. Allowed values are defined by the `USER_TYPES` environment variable during platform installation; contact the installation specialist for the current list. The `special` and `subuser` types are not allowed
array billing_info, Arbitrary object containing user data from the external billing system (for example, `billing_id`, `billing_extra`). VMS stores it unchanged
array properties, User attributes (for example, phone, email, address), up to 10 items. Returned in the `billing_properties` response field
string status, User status: `active` — the user can access VMS (default); `blocked` — access is denied
array modules, Modules to enable immediately for the user: `bridges`, `camera-agents`. The user receives permissions for these modules in addition to the default permissions
|
201 |
|
Returns a user object JSON
|
|
422 |
|
Returns a JSON error object. For more information, see General information > Validation. JSON
|