Add permission for roles
POST
http://localhost:3000/graphqlMutation
mutation AddPermissionToRole($rolePermissionInput: RolePermissionVerificationInput!) {
addPermissionToRole(rolePermissionInput: $rolePermissionInput) {
message
status
}
}
Variables
{
"rolePermissionInput": {
"category": "appointment_permission",
"permission": "read",
"role_name": "doctor"
}
}
Request
None
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
object {0}
Example
{
"data": {
"addPermissionToRole": {
"message": "Permission added successfully",
"status": 200
}
}
}
Last modified: 2 months ago