Roles
add role
POST
https://ushahididocs.api.ushahidi.io/api/v3/roles
Request Body
edit role
PUT
https://ushahididocs.api.ushahidi.io/api/v3/roles/1
POST
https://ushahididocs.api.ushahidi.io/api/v3/roles
PUT
https://ushahididocs.api.ushahidi.io/api/v3/roles/1
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
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
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
OK
OK
OK