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
)
Function EditAgent (
fleetId As Integer,
Optional username As String = Nothing,
Optional password As String = Nothing,
Optional firstName As String = Nothing,
Optional lastName As String = Nothing,
Optional phone As String = Nothing,
Optional email As String = Nothing,
Optional teamId As Nullable(Of Integer) = Nothing,
Optional timezoneOffset As String = Nothing,
Optional rule_id As Nullable(Of Integer) = Nothing,
Optional license As String = Nothing,
Optional transportDesc As String = Nothing
) As TookanBaseResponse
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:
TookanBaseResponseThe response object.
See Also