POST /API/USER
Create a new user account.
RESULT CODE
200 | OK |
---|---|
401 | Unauthorized |
400 | Bad request |
406 | SSL must be used |
500 | Server Error |
REQUEST BODY
username | The username. |
||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
firstname | The first name. |
||||||||||||||||||||
lastname | The last name. |
||||||||||||||||||||
The email address. |
|||||||||||||||||||||
phonenumber | The phone number. |
||||||||||||||||||||
isadministrator | Is this user an administrator. |
||||||||||||||||||||
permissions |
|
EXAMPLE REQUEST
Example;- PUT https://api.calln.com/api/user {"username":"paul","firstname":"Paul","lastname":"Johansen","email":"[email protected]","phonenumber":"","isadministrator":true,"datecreatedutc":"2015-01-02T21:16:21.56","timezoneid":null,"permissions":{"deletecalls":true,"emailcalls":true,"downloadcalls":true,"viewaudits":true,"viewallcalls":true,"exportreports":true,"viewfinancials":false,"webinterface":true,"reportall":true,"viewcampaigns":false,"modifytags":false}} Result;- 200 (OK)
USING CURL
curl "https://api.calln.com/api/user" -H "Authorization: Basic username:password | base64" -X POST -d "{'username':'paul','firstname':'Paul','lastname':'Johansen','email':'[email protected]','phonenumber':'','isadministrator':true,'datecreatedutc':'2015-01-02T21:16:21.56','timezoneid':null,'permissions':{'deletecalls':true,'emailcalls':true,'downloadcalls':true,'viewaudits':true,'viewallcalls':true,'exportreports':true,'viewfinancials':false,'webinterface':true,'reportall':true,'viewcampaigns':false,'modifytags':false}"