Permission Instance
Display all assignable permissions for Asset
The implied
property of a given permission shows which additional
permissions are automatically granted when assigning that particular
permission.
The contradictory
property shows which permissions are removed when
assigning that particular permission.
GET /api/v2/permissions/
Example
curl -X GET https://[kpi]/api/v2/permissions/
Response
{ "count": 9, "next": null, "previous": null, "results": [ { "url": "http://kpi/api/v2/permissions/change_submissions/", "codename": "change_submissions", "implied": [ "http://kpi/api/v2/permissions/view_asset/" ], "contradictory": [ "http://kpi/api/v2/permissions/partial_submissions/" ], "name": "Can modify submitted data for asset" }, ... { "url": "http://kpi/api/v2/permissions/add_submissions/", "codename": "add_submissions", "implied": [], "contradictory": [], "name": "Can submit data to asset" } ] }
GET /api/v2/permissions/{codename}
Example
curl -X GET https://[kpi]/api/v2/permissions/change_submissions
Response
{ "url": "http://kpi/api/v2/permissions/change_submissions/", "codename": "change_submissions", "implied": [ "http://kpi/api/v2/permissions/view_asset/" ], "contradictory": [ "http://kpi/api/v2/permissions/partial_submissions/" ], "name": "Can modify submitted data for asset" }
CURRENT ENDPOINT
GET /api/v2/permissions/validate_submissions/
{ "url": "https://kf.kobotoolbox.org/api/v2/permissions/validate_submissions/", "codename": "validate_submissions", "implied": [ "https://kf.kobotoolbox.org/api/v2/permissions/view_submissions/", "https://kf.kobotoolbox.org/api/v2/permissions/view_asset/" ], "contradictory": [ "https://kf.kobotoolbox.org/api/v2/permissions/partial_submissions/" ], "name": "Can validate submitted data asset" }