URL: v3/api/admin/change-agent/{agent_id}

Method: GET

Description : Fetches existing Agent/Admin data to change role, password, active field.

Parameters:

Parameter Type Optional/Required Description
agent_id integer Required Agent/Admin id
email string Optional Agent/Admin changed email
role string Optional Agent/Admin changed role
password String Optional Agent/Admin changed password
active integer Optional Agent/Admin activate/deactivate

Success Response :

{

"success":true,

"Message":”Email changed successfully."

}

Or

{

"success":true,

"Message":”Role changed successfully."

}

Or

{

"success":true,

"Message":”Password changed successfully."

}

Or

{

"success":true,

"Message":”Account activated successfully."

}

Or

{

"success":true,

"Message":”Account deactivated successfully."

}

 

Error Response :

{

"success":false,

"Message":"Not found"

}

 

Tagged: