Skip to content

Commit

Permalink
Merge pull request #312 from tungleduyxyz/issue_88_update_role_apis
Browse files Browse the repository at this point in the history
Issue 88 Add new Role Apis
  • Loading branch information
reshmabidikar authored Apr 22, 2024
2 parents 408a22f + 940bad0 commit d8670c0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions source/includes/_security.md
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,11 @@ RoleDefinition roleDefinition = securityApi.getRoleDefinition(role, requestOptio


```ruby

role = 'TestRole'

roleDef = KillBillClient::Model::RoleDefinition.find_by_name(role, options)

```

```python
Expand Down Expand Up @@ -893,6 +898,16 @@ securityApi.updateRoleDefinition(roleDefinition, requestOptions);
```

```ruby
user = 'user'
reason = 'reason'
comment = 'comment'

roleDef = KillBillClient::Model::RoleDefinition.new

roleDef.role = 'TestRole'
roleDef.permissions = ["account:*", "invoice:trigger"]

roleDef.update(user,reason,comment,options)
```

```python
Expand Down

0 comments on commit d8670c0

Please sign in to comment.