Click or drag to resize

ITookanEditAgent Method

Updates the agent Null values ignored.

Namespace:  NetQuarry.Services
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
TookanBaseResponse EditAgent(
	int fleetId,
	string username = null,
	string password = null,
	string firstName = null,
	string lastName = null,
	string phone = null,
	string email = null,
	Nullable<int> teamId = null,
	string timezoneOffset = null,
	Nullable<int> rule_id = null,
	string license = null,
	string transportDesc = null
)

Parameters

fleetId
Type: SystemInt32
Agent Id of your agent. You will get this from agent list in dashboard.
username (Optional)
Type: SystemString
Agent username
password (Optional)
Type: SystemString
You can set the password yourself, or leave it empty, in which case the system will auto-generate the password
firstName (Optional)
Type: SystemString
First Name
lastName (Optional)
Type: SystemString
Last Name
phone (Optional)
Type: SystemString
Add phone number of the agen
email (Optional)
Type: SystemString
Email of your agent
teamId (Optional)
Type: SystemNullableInt32
You need to pass a team of which the agent will be a part of. Team Id will be visible on the All teams page
timezoneOffset (Optional)
Type: SystemString
rule_id (Optional)
Type: SystemNullableInt32
You can find rule id in the Access Control page for the agents named as Role ID
license (Optional)
Type: SystemString
transportDesc (Optional)
Type: SystemString
Send 1 for Car, 2 for Motor Cycle, 3 for Bicycle, 4 for Scooter, 5 for Foot, 6 for Truck

Return Value

Type: TookanBaseResponse
The response object.
See Also