Users
Create User
Creates a new user and returns the created record.
When to use. Add a user to your account. If a user with the same username already exists, that existing user is returned and no new user is created.
Required fields. username, email and sip_option.
Notes. If you omit password, a temporary password is generated for the user. When sip_option is set to Custom URI, sip_uri is required. You can also assign roles and desks by passing their IDs. See the request schema for the full list of accepted fields.
Returns. 201 Created with { "users": [ { ... } ] }.
Example.
{
"username": "demo",
"email": "test@example.com",
"sip_option": 0
}
post/{sub_domain}/api/users
Request
- Base URLhttps://api.commpeak.com/pbx
- URLhttps://api.commpeak.com/pbx/{sub_domain}/api/users
- AuthAPI key in header Authorization
Path parameters
sub_domainstring required
PBX Name (subdomain)
Request body
Response
Successful Response
Example response
{
"users": [
{
"auto_dial": 2,
"desks": [],
"email": "test@example.com",
"first_name": "John",
"groups": [],
"id": 1,
"is_active": 1,
"is_clockedin": "0000-00-00 00:00:00",
"is_deleted": 0,
"is_predictive_clockedin": "0000-00-00 00:00:00",
"last_name": "Doe",
"max_concurrent_sessions": 0,
"max_session_time": 0,
"member_all_desks": 0,
"member_all_skill_groups": 0,
"registration_password": "kh3d5f67g7k8j8f8g8k8fjg",
"roles": {
"175": "PBX_ADMIN"
},
"sip_option": 2,
"sip_uri": "user/demo@demo.example.com",
"skill_groups": [],
"twofa_type": "default",
"use_extended_ip_acl": 0,
"use_webrtc": 0,
"user_region": 0,
"username": "demo",
"virtual_extension": "1000"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.