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.templatedto_slack_template import TemplatedtoSlackTemplate

templatedto_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.templateslack_auto_approval_data.templateslack_autoApprovalData(
is_auto_approved = '',
item_id = '',
item_type = '',
auto_approval_message_json = '',
auto_approval_title = '', ),
custom_fields=sailpoint.notifications.models.templateslack_custom_fields.templateslack_customFields(
request_type = '',
contains_deny = '',
campaign_id = '',
campaign_status = '', )
)

[Back to top]