Module: notification_template
Copyright 2020 Parsable, Inc
API address: /api/notification_templates
Functionality for Applets
Enumerations
Enumeration: NotificationTemplateType
Notification Templates types
Every new Enum added to this list, must be also added to 'notification_templates' table 'type' column
hub1
push2
email3
phone4
webhook5
Data structures
Struct: NotificationTemplate
Key Field Type Description Requiredness Default value
1 id stringdefault
2 teamId stringdefault
3 label stringdefault
4 type NotificationTemplateType default
5 payload stringdefault
6 createdAt i64default
7 updatedAt i64default
8 archivedAt i64default
100 attributes list<abac.AbacAttribute >optional
Struct: NotificationTemplateField
Key Field Type Description Requiredness Default value
1 id stringdefault
2 notificationTemplateId stringdefault
3 ownerId stringdefault
4 notificationTemplate NotificationTemplate optional
5 references list<reference.Reference >default
6 createdAt i64default
7 updatedAt i64default
8 targets list<reference.Target >default
Struct: ReferenceableNotificationOp
Struct: Source
Key Field Type Description Requiredness Default value
1 jobId stringdefault
2 jobBaseStepId stringdefault
3 fieldId stringdefault
4 clientId stringdefault
Struct: NotificationParams
Key Field Type Description Requiredness Default value
1 attributes list<abac.AbacAttribute >optional
Services
Service: NotificationTemplateService
Function: NotificationTemplateService.deleteReference
void deleteReference(string teamId,
string notificationTemplateFieldId)
throws common.SystemException
Delete a single one given link between a NotificationTemplate and a Field
Function: NotificationTemplateService.deleteReferences
void deleteReferences(string teamId,
string fieldId)
throws common.SystemException
Delete all Notification Templates that are linked to a Field
Function: NotificationTemplateService.archive
void archive(string teamId,
string notificationTemplateId)
throws common.SystemException
Function: NotificationTemplateService.unarchive
void unarchive(string teamId,
string notificationTemplateId)
throws common.SystemException
Function: NotificationTemplateService.duplicate
string duplicate(string teamId,
string notificationTemplateId)
throws common.SystemException
Function: NotificationTemplateService.updateAttribute
list<abac.AbacAttribute > updateAttribute(common.UUID templateId,
string attributeId,
list<abac.AbacAttributeValue > values,
abac.AbacUploadBehaviour behave)
throws common.SystemException
Update a single attribute on a notification template
return value will always be a list with a single attribute determined by which attribute was updated
param templateId: integration template to update
param attributeId: the AttributeId of the team level attribute to be updated
param values: the new AttributeValues to associated with Attribute attributeId on Integration Template templateId
param behave: determine the behaviour of the endpoint, merge or clobber. Default: clobber