Skip to main content

TemplateDtoSlackTemplate

Properties

NameTypeDescriptionNotes
keystrThe template key[optional]
textstrThe main text content of the Slack message[optional]
blocksstrJSON string of Slack Block Kit blocks for rich formatting[optional]
attachmentsstrJSON string of Slack attachments[optional]
notification_typestrThe type of notification[optional]
approval_idstrThe approval request ID[optional]
request_idstrThe request ID[optional]
requested_by_idstrThe ID of the user who made the request[optional]
is_subscriptionboolWhether this is a subscription notification[optional] [default to False]
auto_approval_dataTemplateSlackAutoApprovalData[optional]
custom_fieldsTemplateSlackCustomFields[optional]
}

Example

from sailpoint.notifications.models.template_dto_slack_template import TemplateDtoSlackTemplate

template_dto_slack_template = TemplateDtoSlackTemplate(
key='',
text='You have a new approval request',
blocks='',
attachments='[]',
notification_type='',
approval_id='',
request_id='',
requested_by_id='',
is_subscription=True,
auto_approval_data=sailpoint.notifications.models.template_slack_auto_approval_data.TemplateSlack_autoApprovalData(
is_auto_approved = '',
item_id = '',
item_type = '',
auto_approval_message_json = '',
auto_approval_title = '', ),
custom_fields=sailpoint.notifications.models.template_slack_custom_fields.TemplateSlack_customFields(
request_type = '',
contains_deny = '',
campaign_id = '',
campaign_status = '', )
)

[Back to top]