_updateUser2

(API version 2.0)

int _updateUser2 ( string kodf , string username , string pass , WDS_User2Item UserItem )

Description

The function updates the user (except for changing usernames, passwords, groups, and vehicle rights).
WARNING: Proper use of this function is by downloading the current object using _getUsers2, editing the object and sending it back. The WDS_User2Item data class can be broaden without any warning by new user rights that you could delete without prior downloading the current object !!

Categories

Parameters

string kodf
Company code
string username
Login username
string pass
Login password
WDS_User2Item UserItem
Object with data - identical to what returns functions getUsers2

Return value

int

Examples

API version 2.0

$client = new SoapClient('https://api.webdispecink.cz/code/WebDispecinkServiceNet.php?wsdl');
$return = $client->_updateUser2($kodf, $username, $pass, $UserItem);

Test

To test the function, enter parameters in form below and press Try it out button.

Company code
Login username
Login password
WDS_User2Item UserItem
ID user
Unique username
password
The user must change the password when logging in for the first time
rights:
0 - admin
1 - user
2 - demo
Valid from
Valid to - unlisted means still valid
Group rights
Vehicle rights - reading
Vehicle rights - writing
email address
mobil
Personal code
Layer
The right to send SMS
Maximum SMS per calendar month
Number of records per page
Administrator car rentals
Note
Show log book 0 / 1
Show odometr 0 / 1
show map 0 / 1
Complete editing of the log book
Log book - driver editing
LB - Purpose editing
LB - Editing purpose only by selecting from combobox
LB - Edit driving type (private / business)
LB - From private to business
LB - From business to private
LB - Edit the actual odometr status
LB - Editing a note
LB - Editing company information
LB - Ed new routes permission, Allow insert new route
LB - to allow service journeys
LB - to allow the private ride to be stored
LB - allow combining rides
LB - Allow deleting rides
Edit driver
Edit Car view
LB - Editing the appearance of a driving book for vehicles with registration rights
LB - Edit costs and fuel cards
LB - Edit costs only by hand
show private rides
LB -to allow the distribution of journeys
Division
Center
right spedition
allow delete SMS 0/1
Allow write absence 0/1
Allow write attendance 0/1
Is car rental customer 0/1. Optional - default 0
Is car rental approver 0/1. Optional - default 0
Is car rental key issuer 0/1. Optional - default 0
Can edit user locations 0/1. Optional
Can edit own user locations 0/1. Optional
Object with data - identical to what returns functions getUsers2

* Required field