All URIs are relative to https://insight.symphonyrm.com:19999/api/3.0
Method | HTTP request | Description |
---|---|---|
add_group_group | POST /groups/{group_id}/groups | Add a Group to Group |
add_group_user | POST /groups/{group_id}/users | Add a User to Group |
all_group_groups | GET /groups/{group_id}/groups | Get All Groups in Group |
all_group_users | GET /groups/{group_id}/users | Get All Users in Group |
all_groups | GET /groups | Get All Groups |
create_group | POST /groups | Create Group |
delete_group | DELETE /groups/{group_id} | Delete Group |
delete_group_from_group | DELETE /groups/{group_id}/groups/{deleting_group_id} | Deletes a Group from Group |
delete_group_user | DELETE /groups/{group_id}/users/{user_id} | Remove a User from Group |
delete_user_attribute_group_value | DELETE /groups/{group_id}/attribute_values/{user_attribute_id} | Delete User Attribute Group Value |
group | GET /groups/{group_id} | Get Group |
update_group | PATCH /groups/{group_id} | Update Group |
update_user_attribute_group_value | PATCH /groups/{group_id}/attribute_values/{user_attribute_id} | Set User Attribute Group Value |
Group add_group_group(group_id, body=body)
Add a Group to Group
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.GroupApi()
group_id = 789 # int | Id of group
body = swagger_client.GroupIdForGroupInclusion() # GroupIdForGroupInclusion | Group id to add (optional)
try:
# Add a Group to Group
api_response = api_instance.add_group_group(group_id, body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling GroupApi->add_group_group: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
group_id | int | Id of group | |
body | GroupIdForGroupInclusion | Group id to add | [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]
User add_group_user(group_id, body=body)
Add a User to Group
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.GroupApi()
group_id = 789 # int | Id of group
body = swagger_client.GroupIdForGroupUserInclusion() # GroupIdForGroupUserInclusion | User id to add (optional)
try:
# Add a User to Group
api_response = api_instance.add_group_user(group_id, body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling GroupApi->add_group_user: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
group_id | int | Id of group | |
body | GroupIdForGroupUserInclusion | User id to add | [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] all_group_groups(group_id, fields=fields)
Get All Groups in Group
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.GroupApi()
group_id = 789 # int | Id of group
fields = 'fields_example' # str | Requested fields. (optional)
try:
# Get All Groups in Group
api_response = api_instance.all_group_groups(group_id, fields=fields)
pprint(api_response)
except ApiException as e:
print("Exception when calling GroupApi->all_group_groups: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
group_id | int | Id of group | |
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] all_group_users(group_id, fields=fields, page=page, per_page=per_page, sorts=sorts)
Get All Users in Group
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.GroupApi()
group_id = 789 # int | Id of group
fields = 'fields_example' # str | Requested fields. (optional)
page = 789 # int | Requested page. (optional)
per_page = 789 # int | Results per page. (optional)
sorts = 'sorts_example' # str | Fields to sort by. (optional)
try:
# Get All Users in Group
api_response = api_instance.all_group_users(group_id, fields=fields, page=page, per_page=per_page, sorts=sorts)
pprint(api_response)
except ApiException as e:
print("Exception when calling GroupApi->all_group_users: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
group_id | int | Id of group | |
fields | str | Requested fields. | [optional] |
page | int | Requested page. | [optional] |
per_page | int | Results per page. | [optional] |
sorts | str | Fields to sort by. | [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] all_groups(fields=fields, page=page, per_page=per_page, sorts=sorts, ids=ids, content_metadata_id=content_metadata_id, can_add_to_content_metadata=can_add_to_content_metadata)
Get All 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.GroupApi()
fields = 'fields_example' # str | Requested fields. (optional)
page = 789 # int | Requested page. (optional)
per_page = 789 # int | Results per page. (optional)
sorts = 'sorts_example' # str | Fields to sort by. (optional)
ids = [56] # list[int] | Optional of ids to get specific groups. (optional)
content_metadata_id = 789 # int | Id of content metadata to which groups must have access. (optional)
can_add_to_content_metadata = true # bool | Select only groups that either can/cannot be given access to content. (optional)
try:
# Get All Groups
api_response = api_instance.all_groups(fields=fields, page=page, per_page=per_page, sorts=sorts, ids=ids, content_metadata_id=content_metadata_id, can_add_to_content_metadata=can_add_to_content_metadata)
pprint(api_response)
except ApiException as e:
print("Exception when calling GroupApi->all_groups: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
fields | str | Requested fields. | [optional] |
page | int | Requested page. | [optional] |
per_page | int | Results per page. | [optional] |
sorts | str | Fields to sort by. | [optional] |
ids | list[int] | Optional of ids to get specific groups. | [optional] |
content_metadata_id | int | Id of content metadata to which groups must have access. | [optional] |
can_add_to_content_metadata | bool | Select only groups that either can/cannot be given access to content. | [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]
Group create_group(body=body, fields=fields)
Create Group
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.GroupApi()
body = swagger_client.Group() # Group | Group (optional)
fields = 'fields_example' # str | Requested fields. (optional)
try:
# Create Group
api_response = api_instance.create_group(body=body, fields=fields)
pprint(api_response)
except ApiException as e:
print("Exception when calling GroupApi->create_group: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | Group | Group | [optional] |
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]
str delete_group(group_id)
Delete Group
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.GroupApi()
group_id = 789 # int | Id of group
try:
# Delete Group
api_response = api_instance.delete_group(group_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling GroupApi->delete_group: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
group_id | int | Id of group |
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]
delete_group_from_group(group_id, deleting_group_id)
Deletes a Group from Group
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.GroupApi()
group_id = 789 # int | Id of group
deleting_group_id = 789 # int | Id of group to delete
try:
# Deletes a Group from Group
api_instance.delete_group_from_group(group_id, deleting_group_id)
except ApiException as e:
print("Exception when calling GroupApi->delete_group_from_group: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
group_id | int | Id of group | |
deleting_group_id | int | Id of group to delete |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_group_user(group_id, user_id)
Remove a User from Group
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.GroupApi()
group_id = 789 # int | Id of group
user_id = 789 # int | Id of user to remove from group
try:
# Remove a User from Group
api_instance.delete_group_user(group_id, user_id)
except ApiException as e:
print("Exception when calling GroupApi->delete_group_user: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
group_id | int | Id of group | |
user_id | int | Id of user to remove from group |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_user_attribute_group_value(group_id, user_attribute_id)
Delete User Attribute Group Value
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.GroupApi()
group_id = 789 # int | Id of group
user_attribute_id = 789 # int | Id of user attribute
try:
# Delete User Attribute Group Value
api_instance.delete_user_attribute_group_value(group_id, user_attribute_id)
except ApiException as e:
print("Exception when calling GroupApi->delete_user_attribute_group_value: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
group_id | int | Id of group | |
user_attribute_id | int | Id of user attribute |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Group group(group_id, fields=fields)
Get Group
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.GroupApi()
group_id = 789 # int | Id of group
fields = 'fields_example' # str | Requested fields. (optional)
try:
# Get Group
api_response = api_instance.group(group_id, fields=fields)
pprint(api_response)
except ApiException as e:
print("Exception when calling GroupApi->group: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
group_id | int | Id of group | |
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]
Group update_group(group_id, body, fields=fields)
Update Group
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.GroupApi()
group_id = 789 # int | Id of group
body = swagger_client.Group() # Group | Group
fields = 'fields_example' # str | Requested fields. (optional)
try:
# Update Group
api_response = api_instance.update_group(group_id, body, fields=fields)
pprint(api_response)
except ApiException as e:
print("Exception when calling GroupApi->update_group: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
group_id | int | Id of group | |
body | Group | Group | |
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]
UserAttributeGroupValue update_user_attribute_group_value(group_id, user_attribute_id, body)
Set User Attribute Group Value
Set the value of a user attribute for a group. For information about how user attribute values are calculated, see Set User Attribute Group Values.
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.GroupApi()
group_id = 789 # int | Id of group
user_attribute_id = 789 # int | Id of user attribute
body = swagger_client.UserAttributeGroupValue() # UserAttributeGroupValue | New value for group.
try:
# Set User Attribute Group Value
api_response = api_instance.update_user_attribute_group_value(group_id, user_attribute_id, body)
pprint(api_response)
except ApiException as e:
print("Exception when calling GroupApi->update_user_attribute_group_value: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
group_id | int | Id of group | |
user_attribute_id | int | Id of user attribute | |
body | UserAttributeGroupValue | New value for group. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]