Get the access token by calling the API below
Post /api/token/
curl <https://zeusapi-server.herokuapp.com/zeusapi/v1/api/token/> \\
-d {"email": "[email protected]", "password": "yourpassword"}
Response
{
"access":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX3BrIjoxLCJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiY29sZF9zdHVmZiI6IuKYgyIsImV4cCI6MTIzNDU2LCJqdGkiOiJmZDJmOWQ1ZTFhN2M0MmU4OTQ5MzVlMzYyYmNhOGJjYSJ9.NHlztMGER7UADHZJlxNG0WSi22a2KaYSfd1S-AuT7lU",
"refresh":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX3BrIjoxLCJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImNvbGRfc3R1ZmYiOiLimIMiLCJleHAiOjIzNDU2NywianRpIjoiZGUxMmY0ZTY3MDY4NDI3ODg5ZjE1YWMyNzcwZGEwNTEifQ.aEoAYkSJjoWH1boshQAaTkf8G3yn0kapko6HFRt7Rh4"
}
Parameters
Post /save_client
curl <https://zeusapi-server.herokuapp.com/zeusapi/v1/save_client> \\
-h {"Content-Type": "application/json", "Authorization": "Bearer accessToken"}
-d {
"created_by_id": "userId",
"name": "clientName",
"attribute": [{"key":"age", "value":"12"}], // Cannot be null
"client_id": "clientId"
}
Response
Client ID: ${yourClientId} is created
Or
Client ID: ${yourClientId} is updated