_delCargroup

(API version 2.0)

int _delCargroup ( string kodf , string username , string pass , int CargroupId )

Description

The function deletes the group. The condition is that the group must be empty - without vehicles and drivers

Categories

Parameters

string kodf
Company code
string username
Login username
string pass
Login password
int CargroupId
Group ID

Return value

int

1 - OK - Deleted

-1 - Unable to log in
-2 - User does not have admin rights
-3 - The user has no right to the specified group
-4 - group id not entered
-5 - group is not empty - can not be deleted

Examples

API version 2.0

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

Test

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

Company code
Login username
Login password
Group ID

* Required field