Roles
Sorting parameter Available values : entity fields Default value : id
Sorting parameter Available values : [ASC,DESC] Default value : ASC !! not work
Paging parameter Default value : null
Paging parameter Default value : 0
Filter parameter if this parameter is set then the api will return posts containing q text in name property
Filter parameter return the roles with name value
OK
Unauthorized
add role
POST https://ushahididocs.api.ushahidi.io/api/v3/roles
Request Body
name
String
Name of the User
permissions
array
An array containing strings of role permissions
description
String
Role description
display_name
String
The user display name
protected
Boolean
Set True to protect the role and false for unprotected
edit role
PUT https://ushahididocs.api.ushahidi.io/api/v3/roles/1
Request Body
display_name
String
Display name
permissions
Array
An array containing strings of permissions
description
String
Role description
protected
Boolean
Set True to protect the role and false for unprotected