All URIs are relative to https://insight.symphonyrm.com:19999/api/3.0
Method | HTTP request | Description |
---|---|---|
all_model_sets | GET /model_sets | Get All Model Sets |
all_permission_sets | GET /permission_sets | Get All Permission Sets |
all_permissions | GET /permissions | Get All Permissions |
all_roles | GET /roles | Get All Roles |
create_model_set | POST /model_sets | Create Model Set |
create_permission_set | POST /permission_sets | Create Permission Set |
create_role | POST /roles | Create Role |
delete_model_set | DELETE /model_sets/{model_set_id} | Delete Model Set |
delete_permission_set | DELETE /permission_sets/{permission_set_id} | Delete Permission Set |
delete_role | DELETE /roles/{role_id} | Delete Role |
model_set | GET /model_sets/{model_set_id} | Get Model Set |
permission_set | GET /permission_sets/{permission_set_id} | Get Permission Set |
role | GET /roles/{role_id} | Get Role |
role_groups | GET /roles/{role_id}/groups | Get Role Groups |
role_users | GET /roles/{role_id}/users | Get Role Users |
set_role_groups | PUT /roles/{role_id}/groups | Update Role Groups |
set_role_users | PUT /roles/{role_id}/users | Update Role Users |
update_model_set | PATCH /model_sets/{model_set_id} | Update Model Set |
update_permission_set | PATCH /permission_sets/{permission_set_id} | Update Permission Set |
update_role | PATCH /roles/{role_id} | Update Role |
list[ModelSet] all_model_sets(fields=fields)
Get All Model Sets
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.RoleApi()
fields = 'fields_example' # str | Requested fields. (optional)
try:
# Get All Model Sets
api_response = api_instance.all_model_sets(fields=fields)
pprint(api_response)
except ApiException as e:
print("Exception when calling RoleApi->all_model_sets: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
fields | str | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[PermissionSet] all_permission_sets(fields=fields)
Get All Permission Sets
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.RoleApi()
fields = 'fields_example' # str | Requested fields. (optional)
try:
# Get All Permission Sets
api_response = api_instance.all_permission_sets(fields=fields)
pprint(api_response)
except ApiException as e:
print("Exception when calling RoleApi->all_permission_sets: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
fields | str | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Permission] all_permissions()
Get All Permissions
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.RoleApi()
try:
# Get All Permissions
api_response = api_instance.all_permissions()
pprint(api_response)
except ApiException as e:
print("Exception when calling RoleApi->all_permissions: %s\n" % e)
This endpoint does not need any parameter.
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Role] all_roles(fields=fields, ids=ids)
Get All Roles
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.RoleApi()
fields = 'fields_example' # str | Requested fields. (optional)
ids = [56] # list[int] | Optional list of ids to get specific roles. (optional)
try:
# Get All Roles
api_response = api_instance.all_roles(fields=fields, ids=ids)
pprint(api_response)
except ApiException as e:
print("Exception when calling RoleApi->all_roles: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
fields | str | Requested fields. | [optional] |
ids | list[int] | Optional list of ids to get specific roles. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ModelSet create_model_set(body=body)
Create Model Set
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.RoleApi()
body = swagger_client.ModelSet() # ModelSet | ModelSet (optional)
try:
# Create Model Set
api_response = api_instance.create_model_set(body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling RoleApi->create_model_set: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | ModelSet | ModelSet | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PermissionSet create_permission_set(body=body)
Create Permission Set
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.RoleApi()
body = swagger_client.PermissionSet() # PermissionSet | Permission Set (optional)
try:
# Create Permission Set
api_response = api_instance.create_permission_set(body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling RoleApi->create_permission_set: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | PermissionSet | Permission Set | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Role create_role(body=body)
Create Role
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.RoleApi()
body = swagger_client.Role() # Role | Role (optional)
try:
# Create Role
api_response = api_instance.create_role(body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling RoleApi->create_role: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | Role | Role | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str delete_model_set(model_set_id)
Delete Model Set
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.RoleApi()
model_set_id = 789 # int | id of model set
try:
# Delete Model Set
api_response = api_instance.delete_model_set(model_set_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling RoleApi->delete_model_set: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
model_set_id | int | id of model set |
str
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str delete_permission_set(permission_set_id)
Delete Permission Set
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.RoleApi()
permission_set_id = 789 # int | Id of permission set
try:
# Delete Permission Set
api_response = api_instance.delete_permission_set(permission_set_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling RoleApi->delete_permission_set: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
permission_set_id | int | Id of permission set |
str
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str delete_role(role_id)
Delete Role
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.RoleApi()
role_id = 789 # int | id of role
try:
# Delete Role
api_response = api_instance.delete_role(role_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling RoleApi->delete_role: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
role_id | int | id of role |
str
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ModelSet model_set(model_set_id, fields=fields)
Get Model Set
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.RoleApi()
model_set_id = 789 # int | Id of model set
fields = 'fields_example' # str | Requested fields. (optional)
try:
# Get Model Set
api_response = api_instance.model_set(model_set_id, fields=fields)
pprint(api_response)
except ApiException as e:
print("Exception when calling RoleApi->model_set: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
model_set_id | int | Id of model set | |
fields | str | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PermissionSet permission_set(permission_set_id, fields=fields)
Get Permission Set
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.RoleApi()
permission_set_id = 789 # int | Id of permission set
fields = 'fields_example' # str | Requested fields. (optional)
try:
# Get Permission Set
api_response = api_instance.permission_set(permission_set_id, fields=fields)
pprint(api_response)
except ApiException as e:
print("Exception when calling RoleApi->permission_set: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
permission_set_id | int | Id of permission set | |
fields | str | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Role role(role_id)
Get Role
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.RoleApi()
role_id = 789 # int | id of role
try:
# Get Role
api_response = api_instance.role(role_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling RoleApi->role: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
role_id | int | id of role |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Group] role_groups(role_id, fields=fields)
Get Role Groups
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.RoleApi()
role_id = 789 # int | id of role
fields = 'fields_example' # str | Requested fields. (optional)
try:
# Get Role Groups
api_response = api_instance.role_groups(role_id, fields=fields)
pprint(api_response)
except ApiException as e:
print("Exception when calling RoleApi->role_groups: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
role_id | int | id of role | |
fields | str | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[User] role_users(role_id, fields=fields, direct_association_only=direct_association_only)
Get Role Users
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.RoleApi()
role_id = 789 # int | id of user
fields = 'fields_example' # str | Requested fields. (optional)
direct_association_only = true # bool | Get only users associated directly with the role: exclude those only associated through groups. (optional)
try:
# Get Role Users
api_response = api_instance.role_users(role_id, fields=fields, direct_association_only=direct_association_only)
pprint(api_response)
except ApiException as e:
print("Exception when calling RoleApi->role_users: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
role_id | int | id of user | |
fields | str | Requested fields. | [optional] |
direct_association_only | bool | Get only users associated directly with the role: exclude those only associated through groups. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Group] set_role_groups(role_id, body)
Update Role Groups
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.RoleApi()
role_id = 789 # int | Id of Role
body = [swagger_client.list[int]()] # list[int] | Array of Group Ids
try:
# Update Role Groups
api_response = api_instance.set_role_groups(role_id, body)
pprint(api_response)
except ApiException as e:
print("Exception when calling RoleApi->set_role_groups: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
role_id | int | Id of Role | |
body | list[int] | Array of Group Ids |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[User] set_role_users(role_id, body)
Update Role Users
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.RoleApi()
role_id = 789 # int | id of role
body = [swagger_client.list[int]()] # list[int] | array of user ids for role
try:
# Update Role Users
api_response = api_instance.set_role_users(role_id, body)
pprint(api_response)
except ApiException as e:
print("Exception when calling RoleApi->set_role_users: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
role_id | int | id of role | |
body | list[int] | array of user ids for role |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ModelSet update_model_set(model_set_id, body)
Update Model Set
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.RoleApi()
model_set_id = 789 # int | id of model set
body = swagger_client.ModelSet() # ModelSet | ModelSet
try:
# Update Model Set
api_response = api_instance.update_model_set(model_set_id, body)
pprint(api_response)
except ApiException as e:
print("Exception when calling RoleApi->update_model_set: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
model_set_id | int | id of model set | |
body | ModelSet | ModelSet |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PermissionSet update_permission_set(permission_set_id, body)
Update Permission Set
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.RoleApi()
permission_set_id = 789 # int | id of permission set
body = swagger_client.PermissionSet() # PermissionSet | Permission Set
try:
# Update Permission Set
api_response = api_instance.update_permission_set(permission_set_id, body)
pprint(api_response)
except ApiException as e:
print("Exception when calling RoleApi->update_permission_set: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
permission_set_id | int | id of permission set | |
body | PermissionSet | Permission Set |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Role update_role(role_id, body)
Update Role
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.RoleApi()
role_id = 789 # int | id of role
body = swagger_client.Role() # Role | Role
try:
# Update Role
api_response = api_instance.update_role(role_id, body)
pprint(api_response)
except ApiException as e:
print("Exception when calling RoleApi->update_role: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
role_id | int | id of role | |
body | Role | Role |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]