Adds a new agent
Namespace:
NetQuarry.Services
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax TookanAddAgentResponse AddAgent(
string username,
string password,
string firstName,
string lastName,
string phone,
string email,
int teamId,
string timezoneOffset,
Nullable<int> rule_id = null,
string license = "",
string transportDesc = ""
)
Function AddAgent (
username As String,
password As String,
firstName As String,
lastName As String,
phone As String,
email As String,
teamId As Integer,
timezoneOffset As String,
Optional rule_id As Nullable(Of Integer) = Nothing,
Optional license As String = "",
Optional transportDesc As String = ""
) As TookanAddAgentResponse
Parameters
- username
- Type: SystemString
Unique username, which the agent will use to login to the Tookan Agent App - password
- Type: SystemString
You can set the password yourself, or leave it empty, in which case the system will auto-generate the password - firstName
- Type: SystemString
Agent first name - lastName
- Type: SystemString
Agent last name - phone
- Type: SystemString
add the phone number of the agent. He will get a notification with the links and credentials to download the app - email
- Type: SystemString
email of your agent. - teamId
- Type: SystemInt32
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
- Type: SystemString
Time zone offset in minutes - 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
Drivers license - 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:
TookanAddAgentResponseThe agent response object.
See Also