Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
50 lines (41 loc) · 1.55 KB

File metadata and controls

50 lines (41 loc) · 1.55 KB

List Permissions

HTTP MethodURLRequires Auth
GET/api/v1/permissions.listAllyes

Query Parameters

KeyExample ValueDescription
updatedSince2017-11-25T15:08:17.248ZDate as ISO string.
If you include this parameter, the update and remove fields in the response will contain only those permissions updated and removed since this date and time.

Example Call

{% code overflow="wrap" %}

curl -H "X-Auth-Token: ijFlJ1yfidXhwEYY284Anoq_iEsOeMMVCupzNhX22tB" \
     -H "X-User-Id: hw5DThnhQmxDWnavu" \
     -H "Content-type: application/json" \
     http://localhost:3000/api/v1/permissions.listAll?updatedSince=2017-11-25T15:08:17.248Z

{% endcode %}

Example Response

{
  "update": [
    {
       "_id": "access-permissions",
       "_updatedAt": "2018-11-28T11:55:49.106Z",
       "roles": [
           "admin"
       ]
    },
    {
        "_id": "add-oauth-service",
        "_updatedAt": "2018-11-28T12:59:51.974Z",
        "roles": [
           "admin",
           "user"
         ]
   }
  ],
  "remove": [],
  "success": true
}

Change Log

Version Description
0.73.0 Added