POST
/v1/admin/admins
Create Admin
curl -X POST https://api.{cluster}.{platform}.voiger.io/v1/admin/admins \ -H "Cookie: sid=$VOIGER_SESSION" \ -H "x-workspace-code: your-workspace-code" \ -H "x-csrf-token: $CSRF_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "admin": { "first_name": "Ahmad", "last_name": "Salman", "image": { "id": "a9788d2e-ca37-41e3-b440-85ae6f8cd4c6" }, "email": "dummy@domain.com", "phone": "+94000000000", "roleId": "ff3bfada-11b2-464e-adaf-ce645ccc917c" } }'
Parameters
x-workspace-code
string
required
in header
x-csrf-token
string
required
in header
Response
admin▾idfirst_namelast_nameimage▾idemailphonestatuscreated_atupdated_atrole▾idname