This API is used to authenticate the client by using admin credentials. In Portal, after logging in as Admin then go to see Client details, you can see login as client button.
This API uses the admin token to log in as the client.
The structure of API as below:
POST
/auth/as_client
HEADER
The request requires you given the Admin Token in headers. If you don't give the Token in headers or wrong Token, the return "error_message" is "Authentication Error" and the request is failed. To get the Token, please refer Authenticate User for more details.