Logo

View the Project on GitHub elements-storage/elements-sdk-python

elements_sdk.IntegrationsApi

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}  

delete_slack_connection

def delete_slack_connection(id)

Required permissions * User account permission: None (read) / system:admin-access (write)

Example

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)

Parameters

Name Type Description Notes
id int A unique integer value identifying this Slack connection.  

Return type

void (empty response body)

[Back to top] [Back to API list] [Back to Model list] [Back to README]

delete_teams_connection

def delete_teams_connection(id)

Required permissions * User account permission: None (read) / system:admin-access (write)

Example

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)

Parameters

Name Type Description Notes
id int A unique integer value identifying this Teams connection.  

Return type

void (empty response body)

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_all_slack_connections

def [SlackConnection] get_all_slack_connections()

Required permissions * User account permission: None (read) / system:admin-access (write)

Example

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)

Parameters

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]

Return type

[SlackConnection]

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_all_teams_connections

def [TeamsConnection] get_all_teams_connections()

Required permissions * User account permission: None (read) / system:admin-access (write)

Example

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)

Parameters

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]

Return type

[TeamsConnection]

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_slack_channels

def [SlackChannel] get_slack_channels(id)

Required permissions * User account permission: tasks:manage

Example

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)

Parameters

Name Type Description Notes
id int A unique integer value identifying this Slack connection.  

Return type

[SlackChannel]

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_slack_connection

def SlackConnection get_slack_connection(id)

Required permissions * User account permission: None (read) / system:admin-access (write)

Example

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)

Parameters

Name Type Description Notes
id int A unique integer value identifying this Slack connection.  

Return type

SlackConnection

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_slack_emoji

def [SlackEmoji] get_slack_emoji(id)

Required permissions * User account permission: tasks:manage

Example

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)

Parameters

Name Type Description Notes
id int A unique integer value identifying this Slack connection.  

Return type

[SlackEmoji]

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_slack_users

def [SlackUser] get_slack_users(id)

Required permissions * User account permission: tasks:manage

Example

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)

Parameters

Name Type Description Notes
id int A unique integer value identifying this Slack connection.  

Return type

[SlackUser]

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_teams_channels

def [TeamsRecipient] get_teams_channels(id)

Required permissions * User account permission: tasks:manage

Example

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)

Parameters

Name Type Description Notes
id int A unique integer value identifying this Teams connection.  

Return type

[TeamsRecipient]

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_teams_connection

def TeamsConnection get_teams_connection(id)

Required permissions * User account permission: None (read) / system:admin-access (write)

Example

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)

Parameters

Name Type Description Notes
id int A unique integer value identifying this Teams connection.  

Return type

TeamsConnection

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_teams_users

def [TeamsRecipient] get_teams_users(id)

Required permissions * User account permission: tasks:manage

Example

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)

Parameters

Name Type Description Notes
id int A unique integer value identifying this Teams connection.  

Return type

[TeamsRecipient]

[Back to top] [Back to API list] [Back to Model list] [Back to README]

patch_slack_connection

def SlackConnection patch_slack_connection(id, slack_connection_partial_update)

Required permissions * User account permission: None (read) / system:admin-access (write)

Example

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)

Parameters

Name Type Description Notes
id int A unique integer value identifying this Slack connection.  
slack_connection_partial_update SlackConnectionPartialUpdate    

Return type

SlackConnection

[Back to top] [Back to API list] [Back to Model list] [Back to README]

patch_teams_connection

def TeamsConnection patch_teams_connection(id, teams_connection_partial_update)

Required permissions * User account permission: None (read) / system:admin-access (write)

Example

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)

Parameters

Name Type Description Notes
id int A unique integer value identifying this Teams connection.  
teams_connection_partial_update TeamsConnectionPartialUpdate    

Return type

TeamsConnection

[Back to top] [Back to API list] [Back to Model list] [Back to README]

send_slack_message

def send_slack_message(id, slack_message)

Required permissions * User account permission: tasks:manage

Example

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)

Parameters

Name Type Description Notes
id int A unique integer value identifying this Slack connection.  
slack_message SlackMessage    

Return type

void (empty response body)

[Back to top] [Back to API list] [Back to Model list] [Back to README]

send_teams_message

def send_teams_message(id, teams_message)

Required permissions * User account permission: tasks:manage

Example

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)

Parameters

Name Type Description Notes
id int A unique integer value identifying this Teams connection.  
teams_message TeamsMessage    

Return type

void (empty response body)

[Back to top] [Back to API list] [Back to Model list] [Back to README]

start_slack_connection_flow

def start_slack_connection_flow()

Required permissions * User account permission: system:admin-access

Example

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)

Parameters

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]

Return type

void (empty response body)

[Back to top] [Back to API list] [Back to Model list] [Back to README]

start_slack_connection_token_refresh_flow

def start_slack_connection_token_refresh_flow(id)

Required permissions * User account permission: system:admin-access

Example

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)

Parameters

Name Type Description Notes
id int A unique integer value identifying this Slack connection.  

Return type

void (empty response body)

[Back to top] [Back to API list] [Back to Model list] [Back to README]

start_teams_connection_flow

def start_teams_connection_flow()

Required permissions * User account permission: system:admin-access

Example

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)

Parameters

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]

Return type

void (empty response body)

[Back to top] [Back to API list] [Back to Model list] [Back to README]

start_teams_connection_token_refresh_flow

def start_teams_connection_token_refresh_flow(id)

Required permissions * User account permission: system:admin-access

Example

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)

Parameters

Name Type Description Notes
id int A unique integer value identifying this Teams connection.  
team str   [optional]

Return type

void (empty response body)

[Back to top] [Back to API list] [Back to Model list] [Back to README]

update_slack_connection

def SlackConnection update_slack_connection(id, slack_connection_update)

Required permissions * User account permission: None (read) / system:admin-access (write)

Example

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)

Parameters

Name Type Description Notes
id int A unique integer value identifying this Slack connection.  
slack_connection_update SlackConnectionUpdate    

Return type

SlackConnection

[Back to top] [Back to API list] [Back to Model list] [Back to README]

update_teams_connection

def TeamsConnection update_teams_connection(id, teams_connection_update)

Required permissions * User account permission: None (read) / system:admin-access (write)

Example

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)

Parameters

Name Type Description Notes
id int A unique integer value identifying this Teams connection.  
teams_connection_update TeamsConnectionUpdate    

Return type

TeamsConnection

[Back to top] [Back to API list] [Back to Model list] [Back to README]