View the Project on GitHub elements-storage/elements-sdk-python
Method | HTTP request | Description |
---|---|---|
delete_slack_connection | DELETE /api/2/integrations/slack/{id} |
|
delete_teams_connection | DELETE /api/2/integrations/teams/{id} |
|
get_all_slack_connections | GET /api/2/integrations/slack |
|
get_all_teams_connections | GET /api/2/integrations/teams |
|
get_slack_channels | GET /api/2/integrations/slack/{id}/channels |
|
get_slack_connection | GET /api/2/integrations/slack/{id} |
|
get_slack_emoji | GET /api/2/integrations/slack/{id}/emoji |
|
get_slack_users | GET /api/2/integrations/slack/{id}/users |
|
get_teams_channels | GET /api/2/integrations/teams/{id}/channels |
|
get_teams_connection | GET /api/2/integrations/teams/{id} |
|
get_teams_users | GET /api/2/integrations/teams/{id}/users |
|
patch_slack_connection | PATCH /api/2/integrations/slack/{id} |
|
patch_teams_connection | PATCH /api/2/integrations/teams/{id} |
|
send_slack_message | POST /api/2/integrations/slack/{id}/message |
|
send_teams_message | POST /api/2/integrations/teams/{id}/send-message |
|
start_slack_connection_flow | GET /api/2/integrations/slack/connect |
|
start_slack_connection_token_refresh_flow | GET /api/2/integrations/slack/{id}/refresh-token |
|
start_teams_connection_flow | GET /api/2/integrations/teams/connect |
|
start_teams_connection_token_refresh_flow | GET /api/2/integrations/teams/{id}/refresh-token |
|
update_slack_connection | PUT /api/2/integrations/slack/{id} |
|
update_teams_connection | PUT /api/2/integrations/teams/{id} |
def delete_slack_connection(id)
None
(read) / system:admin-access
(write)import elements_sdk
from elements_sdk.api import integrations_api
from pprint import pprint
# See configuration.py for a list of all supported configuration parameters.
configuration = elements_sdk.Configuration(
host="https://elements.local:8080",
discard_unknown_keys=True,
)
configuration.client_side_validation = False
configuration.api_key['Bearer'] = 'Bearer your-api-token-here'
with elements_sdk.ApiClient(configuration) as api_client:
api_instance = integrations_api.IntegrationsApi(api_client)
id = 1 # int | A unique integer value identifying this Slack connection.
# example passing only required values which don't have defaults set
try:
api_instance.delete_slack_connection(id)
except elements_sdk.ApiException as e:
print("Exception when calling IntegrationsApi->delete_slack_connection: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this Slack connection. |
void (empty response body)
[Back to top] [Back to API list] [Back to Model list] [Back to README]
def delete_teams_connection(id)
None
(read) / system:admin-access
(write)import elements_sdk
from elements_sdk.api import integrations_api
from pprint import pprint
# See configuration.py for a list of all supported configuration parameters.
configuration = elements_sdk.Configuration(
host="https://elements.local:8080",
discard_unknown_keys=True,
)
configuration.client_side_validation = False
configuration.api_key['Bearer'] = 'Bearer your-api-token-here'
with elements_sdk.ApiClient(configuration) as api_client:
api_instance = integrations_api.IntegrationsApi(api_client)
id = 1 # int | A unique integer value identifying this Teams connection.
# example passing only required values which don't have defaults set
try:
api_instance.delete_teams_connection(id)
except elements_sdk.ApiException as e:
print("Exception when calling IntegrationsApi->delete_teams_connection: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this Teams connection. |
void (empty response body)
[Back to top] [Back to API list] [Back to Model list] [Back to README]
def [SlackConnection] get_all_slack_connections()
None
(read) / system:admin-access
(write)import elements_sdk
from elements_sdk.api import integrations_api
from elements_sdk.model.slack_connection import SlackConnection
from pprint import pprint
# See configuration.py for a list of all supported configuration parameters.
configuration = elements_sdk.Configuration(
host="https://elements.local:8080",
discard_unknown_keys=True,
)
configuration.client_side_validation = False
configuration.api_key['Bearer'] = 'Bearer your-api-token-here'
with elements_sdk.ApiClient(configuration) as api_client:
api_instance = integrations_api.IntegrationsApi(api_client)
ordering = "ordering_example" # str | Which field to use when ordering the results. (optional)
limit = 1 # int | Number of results to return per page. (optional)
offset = 1 # int | The initial index from which to return the results. (optional)
# example passing only required values which don't have defaults set
# and optional values
try:
api_response = api_instance.get_all_slack_connections(ordering=ordering, limit=limit, offset=offset)
pprint(api_response)
except elements_sdk.ApiException as e:
print("Exception when calling IntegrationsApi->get_all_slack_connections: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
ordering | str | Which field to use when ordering the results. | [optional] |
limit | int | Number of results to return per page. | [optional] |
offset | int | The initial index from which to return the results. | [optional] |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
def [TeamsConnection] get_all_teams_connections()
None
(read) / system:admin-access
(write)import elements_sdk
from elements_sdk.api import integrations_api
from elements_sdk.model.teams_connection import TeamsConnection
from pprint import pprint
# See configuration.py for a list of all supported configuration parameters.
configuration = elements_sdk.Configuration(
host="https://elements.local:8080",
discard_unknown_keys=True,
)
configuration.client_side_validation = False
configuration.api_key['Bearer'] = 'Bearer your-api-token-here'
with elements_sdk.ApiClient(configuration) as api_client:
api_instance = integrations_api.IntegrationsApi(api_client)
ordering = "ordering_example" # str | Which field to use when ordering the results. (optional)
limit = 1 # int | Number of results to return per page. (optional)
offset = 1 # int | The initial index from which to return the results. (optional)
# example passing only required values which don't have defaults set
# and optional values
try:
api_response = api_instance.get_all_teams_connections(ordering=ordering, limit=limit, offset=offset)
pprint(api_response)
except elements_sdk.ApiException as e:
print("Exception when calling IntegrationsApi->get_all_teams_connections: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
ordering | str | Which field to use when ordering the results. | [optional] |
limit | int | Number of results to return per page. | [optional] |
offset | int | The initial index from which to return the results. | [optional] |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
def [SlackChannel] get_slack_channels(id)
tasks:manage
import elements_sdk
from elements_sdk.api import integrations_api
from elements_sdk.model.slack_channel import SlackChannel
from pprint import pprint
# See configuration.py for a list of all supported configuration parameters.
configuration = elements_sdk.Configuration(
host="https://elements.local:8080",
discard_unknown_keys=True,
)
configuration.client_side_validation = False
configuration.api_key['Bearer'] = 'Bearer your-api-token-here'
with elements_sdk.ApiClient(configuration) as api_client:
api_instance = integrations_api.IntegrationsApi(api_client)
id = 1 # int | A unique integer value identifying this Slack connection.
# example passing only required values which don't have defaults set
try:
api_response = api_instance.get_slack_channels(id)
pprint(api_response)
except elements_sdk.ApiException as e:
print("Exception when calling IntegrationsApi->get_slack_channels: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this Slack connection. |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
def SlackConnection get_slack_connection(id)
None
(read) / system:admin-access
(write)import elements_sdk
from elements_sdk.api import integrations_api
from elements_sdk.model.slack_connection import SlackConnection
from pprint import pprint
# See configuration.py for a list of all supported configuration parameters.
configuration = elements_sdk.Configuration(
host="https://elements.local:8080",
discard_unknown_keys=True,
)
configuration.client_side_validation = False
configuration.api_key['Bearer'] = 'Bearer your-api-token-here'
with elements_sdk.ApiClient(configuration) as api_client:
api_instance = integrations_api.IntegrationsApi(api_client)
id = 1 # int | A unique integer value identifying this Slack connection.
# example passing only required values which don't have defaults set
try:
api_response = api_instance.get_slack_connection(id)
pprint(api_response)
except elements_sdk.ApiException as e:
print("Exception when calling IntegrationsApi->get_slack_connection: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this Slack connection. |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
def [SlackEmoji] get_slack_emoji(id)
tasks:manage
import elements_sdk
from elements_sdk.api import integrations_api
from elements_sdk.model.slack_emoji import SlackEmoji
from pprint import pprint
# See configuration.py for a list of all supported configuration parameters.
configuration = elements_sdk.Configuration(
host="https://elements.local:8080",
discard_unknown_keys=True,
)
configuration.client_side_validation = False
configuration.api_key['Bearer'] = 'Bearer your-api-token-here'
with elements_sdk.ApiClient(configuration) as api_client:
api_instance = integrations_api.IntegrationsApi(api_client)
id = 1 # int | A unique integer value identifying this Slack connection.
# example passing only required values which don't have defaults set
try:
api_response = api_instance.get_slack_emoji(id)
pprint(api_response)
except elements_sdk.ApiException as e:
print("Exception when calling IntegrationsApi->get_slack_emoji: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this Slack connection. |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
def [SlackUser] get_slack_users(id)
tasks:manage
import elements_sdk
from elements_sdk.api import integrations_api
from elements_sdk.model.slack_user import SlackUser
from pprint import pprint
# See configuration.py for a list of all supported configuration parameters.
configuration = elements_sdk.Configuration(
host="https://elements.local:8080",
discard_unknown_keys=True,
)
configuration.client_side_validation = False
configuration.api_key['Bearer'] = 'Bearer your-api-token-here'
with elements_sdk.ApiClient(configuration) as api_client:
api_instance = integrations_api.IntegrationsApi(api_client)
id = 1 # int | A unique integer value identifying this Slack connection.
# example passing only required values which don't have defaults set
try:
api_response = api_instance.get_slack_users(id)
pprint(api_response)
except elements_sdk.ApiException as e:
print("Exception when calling IntegrationsApi->get_slack_users: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this Slack connection. |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
def [TeamsRecipient] get_teams_channels(id)
tasks:manage
import elements_sdk
from elements_sdk.api import integrations_api
from elements_sdk.model.teams_recipient import TeamsRecipient
from pprint import pprint
# See configuration.py for a list of all supported configuration parameters.
configuration = elements_sdk.Configuration(
host="https://elements.local:8080",
discard_unknown_keys=True,
)
configuration.client_side_validation = False
configuration.api_key['Bearer'] = 'Bearer your-api-token-here'
with elements_sdk.ApiClient(configuration) as api_client:
api_instance = integrations_api.IntegrationsApi(api_client)
id = 1 # int | A unique integer value identifying this Teams connection.
# example passing only required values which don't have defaults set
try:
api_response = api_instance.get_teams_channels(id)
pprint(api_response)
except elements_sdk.ApiException as e:
print("Exception when calling IntegrationsApi->get_teams_channels: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this Teams connection. |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
def TeamsConnection get_teams_connection(id)
None
(read) / system:admin-access
(write)import elements_sdk
from elements_sdk.api import integrations_api
from elements_sdk.model.teams_connection import TeamsConnection
from pprint import pprint
# See configuration.py for a list of all supported configuration parameters.
configuration = elements_sdk.Configuration(
host="https://elements.local:8080",
discard_unknown_keys=True,
)
configuration.client_side_validation = False
configuration.api_key['Bearer'] = 'Bearer your-api-token-here'
with elements_sdk.ApiClient(configuration) as api_client:
api_instance = integrations_api.IntegrationsApi(api_client)
id = 1 # int | A unique integer value identifying this Teams connection.
# example passing only required values which don't have defaults set
try:
api_response = api_instance.get_teams_connection(id)
pprint(api_response)
except elements_sdk.ApiException as e:
print("Exception when calling IntegrationsApi->get_teams_connection: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this Teams connection. |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
def [TeamsRecipient] get_teams_users(id)
tasks:manage
import elements_sdk
from elements_sdk.api import integrations_api
from elements_sdk.model.teams_recipient import TeamsRecipient
from pprint import pprint
# See configuration.py for a list of all supported configuration parameters.
configuration = elements_sdk.Configuration(
host="https://elements.local:8080",
discard_unknown_keys=True,
)
configuration.client_side_validation = False
configuration.api_key['Bearer'] = 'Bearer your-api-token-here'
with elements_sdk.ApiClient(configuration) as api_client:
api_instance = integrations_api.IntegrationsApi(api_client)
id = 1 # int | A unique integer value identifying this Teams connection.
# example passing only required values which don't have defaults set
try:
api_response = api_instance.get_teams_users(id)
pprint(api_response)
except elements_sdk.ApiException as e:
print("Exception when calling IntegrationsApi->get_teams_users: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this Teams connection. |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
def SlackConnection patch_slack_connection(id, slack_connection_partial_update)
None
(read) / system:admin-access
(write)import elements_sdk
from elements_sdk.api import integrations_api
from elements_sdk.model.slack_connection_partial_update import SlackConnectionPartialUpdate
from elements_sdk.model.slack_connection import SlackConnection
from pprint import pprint
# See configuration.py for a list of all supported configuration parameters.
configuration = elements_sdk.Configuration(
host="https://elements.local:8080",
discard_unknown_keys=True,
)
configuration.client_side_validation = False
configuration.api_key['Bearer'] = 'Bearer your-api-token-here'
with elements_sdk.ApiClient(configuration) as api_client:
api_instance = integrations_api.IntegrationsApi(api_client)
id = 1 # int | A unique integer value identifying this Slack connection.
slack_connection_partial_update = SlackConnectionPartialUpdate(
name="name_example",
) # SlackConnectionPartialUpdate |
# example passing only required values which don't have defaults set
try:
api_response = api_instance.patch_slack_connection(id, slack_connection_partial_update)
pprint(api_response)
except elements_sdk.ApiException as e:
print("Exception when calling IntegrationsApi->patch_slack_connection: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this Slack connection. | |
slack_connection_partial_update | SlackConnectionPartialUpdate |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
def TeamsConnection patch_teams_connection(id, teams_connection_partial_update)
None
(read) / system:admin-access
(write)import elements_sdk
from elements_sdk.api import integrations_api
from elements_sdk.model.teams_connection import TeamsConnection
from elements_sdk.model.teams_connection_partial_update import TeamsConnectionPartialUpdate
from pprint import pprint
# See configuration.py for a list of all supported configuration parameters.
configuration = elements_sdk.Configuration(
host="https://elements.local:8080",
discard_unknown_keys=True,
)
configuration.client_side_validation = False
configuration.api_key['Bearer'] = 'Bearer your-api-token-here'
with elements_sdk.ApiClient(configuration) as api_client:
api_instance = integrations_api.IntegrationsApi(api_client)
id = 1 # int | A unique integer value identifying this Teams connection.
teams_connection_partial_update = TeamsConnectionPartialUpdate(
name="name_example",
) # TeamsConnectionPartialUpdate |
# example passing only required values which don't have defaults set
try:
api_response = api_instance.patch_teams_connection(id, teams_connection_partial_update)
pprint(api_response)
except elements_sdk.ApiException as e:
print("Exception when calling IntegrationsApi->patch_teams_connection: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this Teams connection. | |
teams_connection_partial_update | TeamsConnectionPartialUpdate |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
def send_slack_message(id, slack_message)
tasks:manage
import elements_sdk
from elements_sdk.api import integrations_api
from elements_sdk.model.slack_message import SlackMessage
from pprint import pprint
# See configuration.py for a list of all supported configuration parameters.
configuration = elements_sdk.Configuration(
host="https://elements.local:8080",
discard_unknown_keys=True,
)
configuration.client_side_validation = False
configuration.api_key['Bearer'] = 'Bearer your-api-token-here'
with elements_sdk.ApiClient(configuration) as api_client:
api_instance = integrations_api.IntegrationsApi(api_client)
id = 1 # int | A unique integer value identifying this Slack connection.
slack_message = SlackMessage(
recipient="recipient_example",
text="text_example",
username="username_example",
emoji="emoji_example",
) # SlackMessage |
# example passing only required values which don't have defaults set
try:
api_instance.send_slack_message(id, slack_message)
except elements_sdk.ApiException as e:
print("Exception when calling IntegrationsApi->send_slack_message: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this Slack connection. | |
slack_message | SlackMessage |
void (empty response body)
[Back to top] [Back to API list] [Back to Model list] [Back to README]
def send_teams_message(id, teams_message)
tasks:manage
import elements_sdk
from elements_sdk.api import integrations_api
from elements_sdk.model.teams_message import TeamsMessage
from pprint import pprint
# See configuration.py for a list of all supported configuration parameters.
configuration = elements_sdk.Configuration(
host="https://elements.local:8080",
discard_unknown_keys=True,
)
configuration.client_side_validation = False
configuration.api_key['Bearer'] = 'Bearer your-api-token-here'
with elements_sdk.ApiClient(configuration) as api_client:
api_instance = integrations_api.IntegrationsApi(api_client)
id = 1 # int | A unique integer value identifying this Teams connection.
teams_message = TeamsMessage(
recipient="recipient_example",
text="text_example",
) # TeamsMessage |
# example passing only required values which don't have defaults set
try:
api_instance.send_teams_message(id, teams_message)
except elements_sdk.ApiException as e:
print("Exception when calling IntegrationsApi->send_teams_message: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this Teams connection. | |
teams_message | TeamsMessage |
void (empty response body)
[Back to top] [Back to API list] [Back to Model list] [Back to README]
def start_slack_connection_flow()
system:admin-access
import elements_sdk
from elements_sdk.api import integrations_api
from pprint import pprint
# See configuration.py for a list of all supported configuration parameters.
configuration = elements_sdk.Configuration(
host="https://elements.local:8080",
discard_unknown_keys=True,
)
configuration.client_side_validation = False
configuration.api_key['Bearer'] = 'Bearer your-api-token-here'
with elements_sdk.ApiClient(configuration) as api_client:
api_instance = integrations_api.IntegrationsApi(api_client)
ordering = "ordering_example" # str | Which field to use when ordering the results. (optional)
limit = 1 # int | Number of results to return per page. (optional)
offset = 1 # int | The initial index from which to return the results. (optional)
# example passing only required values which don't have defaults set
# and optional values
try:
api_instance.start_slack_connection_flow(ordering=ordering, limit=limit, offset=offset)
except elements_sdk.ApiException as e:
print("Exception when calling IntegrationsApi->start_slack_connection_flow: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
ordering | str | Which field to use when ordering the results. | [optional] |
limit | int | Number of results to return per page. | [optional] |
offset | int | The initial index from which to return the results. | [optional] |
void (empty response body)
[Back to top] [Back to API list] [Back to Model list] [Back to README]
def start_slack_connection_token_refresh_flow(id)
system:admin-access
import elements_sdk
from elements_sdk.api import integrations_api
from pprint import pprint
# See configuration.py for a list of all supported configuration parameters.
configuration = elements_sdk.Configuration(
host="https://elements.local:8080",
discard_unknown_keys=True,
)
configuration.client_side_validation = False
configuration.api_key['Bearer'] = 'Bearer your-api-token-here'
with elements_sdk.ApiClient(configuration) as api_client:
api_instance = integrations_api.IntegrationsApi(api_client)
id = 1 # int | A unique integer value identifying this Slack connection.
# example passing only required values which don't have defaults set
try:
api_instance.start_slack_connection_token_refresh_flow(id)
except elements_sdk.ApiException as e:
print("Exception when calling IntegrationsApi->start_slack_connection_token_refresh_flow: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this Slack connection. |
void (empty response body)
[Back to top] [Back to API list] [Back to Model list] [Back to README]
def start_teams_connection_flow()
system:admin-access
import elements_sdk
from elements_sdk.api import integrations_api
from pprint import pprint
# See configuration.py for a list of all supported configuration parameters.
configuration = elements_sdk.Configuration(
host="https://elements.local:8080",
discard_unknown_keys=True,
)
configuration.client_side_validation = False
configuration.api_key['Bearer'] = 'Bearer your-api-token-here'
with elements_sdk.ApiClient(configuration) as api_client:
api_instance = integrations_api.IntegrationsApi(api_client)
ordering = "ordering_example" # str | Which field to use when ordering the results. (optional)
limit = 1 # int | Number of results to return per page. (optional)
offset = 1 # int | The initial index from which to return the results. (optional)
team = "team_example" # str | (optional)
# example passing only required values which don't have defaults set
# and optional values
try:
api_instance.start_teams_connection_flow(ordering=ordering, limit=limit, offset=offset, team=team)
except elements_sdk.ApiException as e:
print("Exception when calling IntegrationsApi->start_teams_connection_flow: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
ordering | str | Which field to use when ordering the results. | [optional] |
limit | int | Number of results to return per page. | [optional] |
offset | int | The initial index from which to return the results. | [optional] |
team | str | [optional] |
void (empty response body)
[Back to top] [Back to API list] [Back to Model list] [Back to README]
def start_teams_connection_token_refresh_flow(id)
system:admin-access
import elements_sdk
from elements_sdk.api import integrations_api
from pprint import pprint
# See configuration.py for a list of all supported configuration parameters.
configuration = elements_sdk.Configuration(
host="https://elements.local:8080",
discard_unknown_keys=True,
)
configuration.client_side_validation = False
configuration.api_key['Bearer'] = 'Bearer your-api-token-here'
with elements_sdk.ApiClient(configuration) as api_client:
api_instance = integrations_api.IntegrationsApi(api_client)
id = 1 # int | A unique integer value identifying this Teams connection.
team = "team_example" # str | (optional)
# example passing only required values which don't have defaults set
try:
api_instance.start_teams_connection_token_refresh_flow(id)
except elements_sdk.ApiException as e:
print("Exception when calling IntegrationsApi->start_teams_connection_token_refresh_flow: %s\n" % e)
# example passing only required values which don't have defaults set
# and optional values
try:
api_instance.start_teams_connection_token_refresh_flow(id, team=team)
except elements_sdk.ApiException as e:
print("Exception when calling IntegrationsApi->start_teams_connection_token_refresh_flow: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this Teams connection. | |
team | str | [optional] |
void (empty response body)
[Back to top] [Back to API list] [Back to Model list] [Back to README]
def SlackConnection update_slack_connection(id, slack_connection_update)
None
(read) / system:admin-access
(write)import elements_sdk
from elements_sdk.api import integrations_api
from elements_sdk.model.slack_connection_update import SlackConnectionUpdate
from elements_sdk.model.slack_connection import SlackConnection
from pprint import pprint
# See configuration.py for a list of all supported configuration parameters.
configuration = elements_sdk.Configuration(
host="https://elements.local:8080",
discard_unknown_keys=True,
)
configuration.client_side_validation = False
configuration.api_key['Bearer'] = 'Bearer your-api-token-here'
with elements_sdk.ApiClient(configuration) as api_client:
api_instance = integrations_api.IntegrationsApi(api_client)
id = 1 # int | A unique integer value identifying this Slack connection.
slack_connection_update = SlackConnectionUpdate(
name="name_example",
) # SlackConnectionUpdate |
# example passing only required values which don't have defaults set
try:
api_response = api_instance.update_slack_connection(id, slack_connection_update)
pprint(api_response)
except elements_sdk.ApiException as e:
print("Exception when calling IntegrationsApi->update_slack_connection: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this Slack connection. | |
slack_connection_update | SlackConnectionUpdate |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
def TeamsConnection update_teams_connection(id, teams_connection_update)
None
(read) / system:admin-access
(write)import elements_sdk
from elements_sdk.api import integrations_api
from elements_sdk.model.teams_connection_update import TeamsConnectionUpdate
from elements_sdk.model.teams_connection import TeamsConnection
from pprint import pprint
# See configuration.py for a list of all supported configuration parameters.
configuration = elements_sdk.Configuration(
host="https://elements.local:8080",
discard_unknown_keys=True,
)
configuration.client_side_validation = False
configuration.api_key['Bearer'] = 'Bearer your-api-token-here'
with elements_sdk.ApiClient(configuration) as api_client:
api_instance = integrations_api.IntegrationsApi(api_client)
id = 1 # int | A unique integer value identifying this Teams connection.
teams_connection_update = TeamsConnectionUpdate(
name="name_example",
) # TeamsConnectionUpdate |
# example passing only required values which don't have defaults set
try:
api_response = api_instance.update_teams_connection(id, teams_connection_update)
pprint(api_response)
except elements_sdk.ApiException as e:
print("Exception when calling IntegrationsApi->update_teams_connection: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this Teams connection. | |
teams_connection_update | TeamsConnectionUpdate |
[Back to top] [Back to API list] [Back to Model list] [Back to README]