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_relationship
curl <https://zeusapi-server.herokuapp.com/zeusapi/v1/save_relationship> \\
-h {"Content-Type": "application/json", "Authorization": "Bearer accessToken"}
-d {
"created_by_id": "userId",
"role": "roleId",
"client": "clientId",
"permission": "owner",
"client_attribute": [] // Cannot be null
"role_attribute": [] // Cannot be null
}
Response
Multiple relationships are created