Gets all the roles in the system, which are updated after a given date.
HTTP Method | URL | Requires Auth |
---|
GET | /api/v1/roles.sync | yes |
Key | Example Value | Description |
---|
updatedSince * | 2017-11-25T15:08:17.248Z | Date as ISO string. |
curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
-H "X-User-Id: aobEdbYhXfu5hkeqG" \
http://localhost:3000/api/v1/roles.sync?updatedSince=2017-11-25T15:08:17.248Z
{
"roles": {
"update" :[
{
"_id": "admin",
"description": "Admin",
"mandatory2fa": false,
"protected": true,
"scope": "Users"
}
],
"remove" : [
{
"_id": "user",
"description": "User",
"mandatory2fa": false,
"protected": true,
"scope": "Users"
}
]
},
"success": true
}
Version |
Description |
3.1.0 |
Added |