Notification Templates Management API
The WSO2 Identity Server - Notification Templates API (version 1.0.0).
Download the OpenAPI definition (YAML)
Security schemes
OAuth2: oauth2
authorizationCode flow, token URL https://localhost:9443/oauth2/token, authorization URL https://localhost:9443/oauth2/authorize
4 scopes
| Scope | Description |
|---|---|
view | internal_org_template_mgt_view |
create | internal_org_template_mgt_create |
update | internal_org_template_mgt_update |
delete | internal_org_template_mgt_delete |
Email Template Types
An email template type can have multiple email templates for different languages.
Retrieves all the email template types.
GET /notification/email/template-types
Retrieves all the email template types in the system.
Scope(Permission) required: internal_org_template_mgt_view
Responses
| Code | Description | Schema |
|---|---|---|
200 | Search results matching the given criteria. | array of TemplateTypeWithID |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Forbidden. | |
500 | Internal Server Error. | Error |
Adds a new email template type.
POST /notification/email/template-types
Adds a new email template type to the system. An email template type can have any number of
organization or application email templates.
- Attribute displayName of the template type should be unique.
Scope(Permission) required: internal_org_template_mgt_update
Request body: application/json
Email template type to be added.
Schema: TemplateTypeOverview
1 property
| Name | Type | Required | Description |
|---|---|---|---|
displayName | string | Yes | Display name of the template type. |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Item Created | TemplateTypeWithID |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Forbidden. | |
409 | Item Already Exists. | Error |
500 | Internal Server Error. | Error |
Retrieves the email template type corresponding to the template type id.
GET /notification/email/template-types/{template-type-id}
Retrieves the email template type in the system identified by the template-type-id.
Scope(Permission) required: internal_org_template_mgt_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
template-type-id | path | string | Yes | Template Type ID. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Search results matching the given criteria. | TemplateTypeWithID |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Forbidden. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
Removes an email template type.
DEL /notification/email/template-types/{template-type-id}
Removes an existing email template type with all its email templates
from the system.
Note : System resources are not eligible for deletion. Attempting to delete a system resource will result in a 403 Forbidden error.
Scope(Permission) required: internal_org_template_mgt_delete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
template-type-id | path | string | Yes | Template Type ID. |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Item/s Deleted. | |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Forbidden. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
Email Templates
An email template of a specific type and a language.
Retrieves the list of organization email templates under the provided template type.
GET /notification/email/template-types/{template-type-id}/org-templates
Retrieves the list of organization email templates under the provided template type.
Scope(Permission) required: internal_org_template_mgt_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
template-type-id | path | string | Yes | Template Type ID. |
resolve | query | boolean | Specifies whether to return resolved template/s throughout the ancestor organization hierarchy. Default: |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Search results matching the given criteria. | array of SimpleTemplate |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Forbidden. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
Adds a new organization email template to an existing email template type.
POST /notification/email/template-types/{template-type-id}/org-templates
Another organization email template with the same locale should not already exist in the
respective email template type.
Scope(Permission) required: internal_org_template_mgt_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
template-type-id | path | string | Yes | Template Type ID. |
Request body: application/json
Email template to be added.
Schema: EmailTemplateWithID
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
contentType | string | Yes | Content type of the email template. |
subject | string | Yes | The subject of the email. |
body | string | Yes | The body of the email. |
footer | string | The footer of the email. | |
locale | string | Yes | Locale of the email template. |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Item Created | SimpleTemplate |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Forbidden. | |
404 | The specified resource is not found. | Error |
409 | Item Already Exists. | Error |
500 | Internal Server Error. | Error |
Retrieves a single organization email template.
GET /notification/email/template-types/{template-type-id}/org-templates/{locale}
Retrieves the organization email template that matches to the template-type-id and the locale.
Scope(Permission) required: internal_org_template_mgt_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
template-type-id | path | string | Yes | Template Type ID. |
locale | path | string | Yes | This should be a valid locale. |
resolve | query | boolean | Specifies whether to return resolved template/s throughout the ancestor organization hierarchy. Default: |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Search results matching the given criteria. | EmailTemplateWithID |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Forbidden. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
Replaces an existing organization email template.
PUT /notification/email/template-types/{template-type-id}/org-templates/{locale}
Replaces the organization email template identified by the template-type-id and the locale.
Scope(Permission) required: internal_org_template_mgt_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
template-type-id | path | string | Yes | Template Type ID. |
locale | path | string | Yes | This should be a valid locale. |
Request body: application/json
Updated email template for the template type.
Schema: EmailTemplate
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
contentType | string | Yes | Content type of the email template. |
subject | string | Yes | The subject of the email. |
body | string | Yes | The body of the email. |
footer | string | The footer of the email. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Item Updated. | |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Forbidden. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
Removes an organization email template.
DEL /notification/email/template-types/{template-type-id}/org-templates/{locale}
Removes an organization email template identified by the template-type-id and the locale.
Scope(Permission) required: internal_org_template_mgt_delete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
template-type-id | path | string | Yes | Template Type ID. |
locale | path | string | Yes | This should be a valid locale. |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Item/s Deleted. | |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Forbidden. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
Application Email Templates
An application email template of a specific type and a language.
Retrieves the list of application email templates under the provided template type.
GET /notification/email/template-types/{template-type-id}/app-templates/{app-uuid}
Retrieves the list of application email templates under the provided template type.
Scope(Permission) required: internal_org_template_mgt_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
template-type-id | path | string | Yes | Template Type ID. |
app-uuid | path | string | Yes | Application UUID. |
resolve | query | boolean | Specifies whether to return resolved template/s throughout the ancestor organization hierarchy. Default: |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Search results matching the given criteria. | array of SimpleTemplate |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Forbidden. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
Adds a new application email template to an existing email template type.
POST /notification/email/template-types/{template-type-id}/app-templates/{app-uuid}
Another application email template with the same locale should not already exist in the
respective email template type.
Scope(Permission) required: internal_org_template_mgt_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
template-type-id | path | string | Yes | Template Type ID. |
app-uuid | path | string | Yes | Application UUID. |
Request body: application/json
Email template to be added.
Schema: EmailTemplateWithID
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
contentType | string | Yes | Content type of the email template. |
subject | string | Yes | The subject of the email. |
body | string | Yes | The body of the email. |
footer | string | The footer of the email. | |
locale | string | Yes | Locale of the email template. |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Item Created | SimpleTemplate |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Forbidden. | |
404 | The specified resource is not found. | Error |
409 | Item Already Exists. | Error |
500 | Internal Server Error. | Error |
Retrieves a single email template of application.
GET /notification/email/template-types/{template-type-id}/app-templates/{app-uuid}/{locale}
Retrieves the application email template that matches to the template-type-id and the locale.
Scope(Permission) required: internal_org_template_mgt_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
template-type-id | path | string | Yes | Template Type ID. |
app-uuid | path | string | Yes | Application UUID. |
locale | path | string | Yes | This should be a valid locale. |
resolve | query | boolean | Specifies whether to return resolved template/s throughout the ancestor organization hierarchy. Default: |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Search results matching the given criteria. | EmailTemplateWithID |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Forbidden. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
Replaces an existing application email template.
PUT /notification/email/template-types/{template-type-id}/app-templates/{app-uuid}/{locale}
Replaces the application email template identified by the template-type-id and the locale.
Scope(Permission) required: internal_org_template_mgt_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
template-type-id | path | string | Yes | Template Type ID. |
app-uuid | path | string | Yes | Application UUID. |
locale | path | string | Yes | This should be a valid locale. |
Request body: application/json
Email templates for the template type.
Schema: EmailTemplate
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
contentType | string | Yes | Content type of the email template. |
subject | string | Yes | The subject of the email. |
body | string | Yes | The body of the email. |
footer | string | The footer of the email. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Item Updated. | |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Forbidden. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
Removes an application email template.
DEL /notification/email/template-types/{template-type-id}/app-templates/{app-uuid}/{locale}
Removes an application email template identified by the template-type-id and the locale.
Scope(Permission) required: internal_org_template_mgt_delete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
template-type-id | path | string | Yes | Template Type ID. |
app-uuid | path | string | Yes | Application UUID. |
locale | path | string | Yes | This should be a valid locale. |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Item/s Deleted. | |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Forbidden. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
SMS Template Types
A SMS template type can have multiple SMS templates for different languages.
Retrieves all the SMS template types.
GET /notification/sms/template-types
Retrieves all the SMS template types in the system.
Scope(Permission) required: internal_org_template_mgt_view
Responses
| Code | Description | Schema |
|---|---|---|
200 | Search results matching the given criteria. | array of TemplateTypeWithID |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Forbidden. | |
500 | Internal Server Error. | Error |
Adds a new SMS template type.
POST /notification/sms/template-types
Adds a new SMS template type to the system. A SMS template type can have any number of
organization or application SMS templates.
- Attribute displayName of the template type should be unique.
Scope(Permission) required: internal_org_template_mgt_create
Request body: application/json
SMS template type to be added.
Schema: TemplateTypeOverview
1 property
| Name | Type | Required | Description |
|---|---|---|---|
displayName | string | Yes | Display name of the template type. |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Item Created | TemplateTypeWithID |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Forbidden. | |
409 | Item Already Exists. | Error |
500 | Internal Server Error. | Error |
Retrieves the SMS template type corresponding to the template type id.
GET /notification/sms/template-types/{template-type-id}
Retrieves the SMS template type in the system identified by the template-type-id.
Scope(Permission) required: internal_org_template_mgt_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
template-type-id | path | string | Yes | Template Type ID. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Search results matching the given criteria. | TemplateTypeWithID |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Forbidden. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
Removes a SMS template type.
DEL /notification/sms/template-types/{template-type-id}
Removes an existing SMS template type with all its SMS templates
from the system.
Note : System resources are not eligible for deletion. Attempting to delete a system resource will result in a 403 Forbidden error.
Scope(Permission) required: internal_org_template_mgt_delete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
template-type-id | path | string | Yes | Template Type ID. |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Item/s Deleted. | |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Forbidden. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
SMS Templates
A SMS template of a specific type and a language.
Retrieves the list of organization SMS templates under the provided template type.
GET /notification/sms/template-types/{template-type-id}/org-templates
Retrieves the list of organization SMS templates under the provided templalte type.
Scope(Permission) required: internal_org_template_mgt_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
template-type-id | path | string | Yes | Template Type ID. |
resolve | query | boolean | Specifies whether to return resolved template/s throughout the ancestor organization hierarchy. Default: |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Search results matching the given criteria. | array of SimpleTemplate |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Forbidden. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
Adds a new organization SMS template to an existing SMS template type.
POST /notification/sms/template-types/{template-type-id}/org-templates
Another organization SMS template with the same locale should not already exist in the
respective SMS template type.
Scope(Permission) required: internal_org_template_mgt_create
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
template-type-id | path | string | Yes | Template Type ID. |
Request body: application/json
SMS template to be added.
Schema: SMSTemplateWithID
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
body | string | Yes | The body of the SMS. |
locale | string | Yes | Locale of the SMS template. |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Item Created | SimpleTemplate |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Forbidden. | |
404 | The specified resource is not found. | Error |
409 | Item Already Exists. | Error |
500 | Internal Server Error. | Error |
Retrieves a single organization SMS template.
GET /notification/sms/template-types/{template-type-id}/org-templates/{locale}
Retrieves the organization SMS template that matches to the template-type-id and the locale.
Scope(Permission) required: internal_org_template_mgt_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
template-type-id | path | string | Yes | Template Type ID. |
locale | path | string | Yes | This should be a valid locale. |
resolve | query | boolean | Specifies whether to return resolved template/s throughout the ancestor organization hierarchy. Default: |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Search results matching the given criteria. | SMSTemplateWithID |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Forbidden. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
Replaces an existing organization SMS template.
PUT /notification/sms/template-types/{template-type-id}/org-templates/{locale}
Replaces the organization SMS template identified by the template-type-id and the locale.
Scope(Permission) required: internal_org_template_mgt_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
template-type-id | path | string | Yes | Template Type ID. |
locale | path | string | Yes | This should be a valid locale. |
Request body: application/json
Updated SMS template for the template type.
Schema: SMSTemplate
1 property
| Name | Type | Required | Description |
|---|---|---|---|
body | string | Yes | The body of the SMS. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Item Updated. | |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Forbidden. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
Removes an organization SMS template.
DEL /notification/sms/template-types/{template-type-id}/org-templates/{locale}
Removes an organization SMS template identified by the template-type-id and the locale.
Scope(Permission) required: internal_org_template_mgt_delete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
template-type-id | path | string | Yes | Template Type ID. |
locale | path | string | Yes | This should be a valid locale. |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Item/s Deleted. | |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Forbidden. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
Application SMS Templates
An application email template of a specific type and a language.
Retrieves the list of application SMS templates under the provided template type.
GET /notification/sms/template-types/{template-type-id}/app-templates/{app-uuid}
Retrieves the list of application SMS templates under the provided template type.
Scope(Permission) required: internal_org_template_mgt_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
template-type-id | path | string | Yes | Template Type ID. |
app-uuid | path | string | Yes | Application UUID. |
resolve | query | boolean | Specifies whether to return resolved template/s throughout the ancestor organization hierarchy. Default: |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Search results matching the given criteria. | array of SimpleTemplate |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Forbidden. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
Adds a new application SMS template to an existing SMS template type.
POST /notification/sms/template-types/{template-type-id}/app-templates/{app-uuid}
Another application SMS template with the same locale should not already exist in the
respective SMS template type.
Scope(Permission) required: internal_org_template_mgt_create
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
template-type-id | path | string | Yes | Template Type ID. |
app-uuid | path | string | Yes | Application UUID. |
Request body: application/json
SMS template to be added.
Schema: SMSTemplateWithID
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
body | string | Yes | The body of the SMS. |
locale | string | Yes | Locale of the SMS template. |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Item Created | SimpleTemplate |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Forbidden. | |
404 | The specified resource is not found. | Error |
409 | Item Already Exists. | Error |
500 | Internal Server Error. | Error |
Retrieves a single SMS template of application.
GET /notification/sms/template-types/{template-type-id}/app-templates/{app-uuid}/{locale}
Retrieves the application SMS template that matches to the template-type-id and the locale.
Scope(Permission) required: internal_org_template_mgt_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
template-type-id | path | string | Yes | Template Type ID. |
app-uuid | path | string | Yes | Application UUID. |
locale | path | string | Yes | This should be a valid locale. |
resolve | query | boolean | Specifies whether to return resolved template/s throughout the ancestor organization hierarchy. Default: |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Search results matching the given criteria. | SMSTemplateWithID |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Forbidden. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
Replaces an existing application SMS template.
PUT /notification/sms/template-types/{template-type-id}/app-templates/{app-uuid}/{locale}
Replaces the application SMS template identified by the template-type-id and the locale.
Scope(Permission) required: internal_org_template_mgt_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
template-type-id | path | string | Yes | Template Type ID. |
app-uuid | path | string | Yes | Application UUID. |
locale | path | string | Yes | This should be a valid locale. |
Request body: application/json
Application SMS template for the template type and locale.
Schema: SMSTemplate
1 property
| Name | Type | Required | Description |
|---|---|---|---|
body | string | Yes | The body of the SMS. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Item Updated. | |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Forbidden. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
Removes a SMS template.
DEL /notification/sms/template-types/{template-type-id}/app-templates/{app-uuid}/{locale}
Removes a SMS template identified by the template-type-id and the locale.
Scope(Permission) required: internal_org_template_mgt_delete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
template-type-id | path | string | Yes | Template Type ID. |
app-uuid | path | string | Yes | Application UUID. |
locale | path | string | Yes | This should be a valid locale. |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Item/s Deleted. | |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Forbidden. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
System Templates
A system default template of a specific type and a language.
Retrieves the system email templates of template type.
GET /notification/email/template-types/{template-type-id}/system-templates
Retrieves the list of system default email templates under the provided template type.
Scope(Permission) required: internal_org_template_mgt_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
template-type-id | path | string | Yes | Template Type ID. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Search results matching the given criteria. | array of SimpleTemplate |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Forbidden. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
Retrieves the default email template for given type and locale.
GET /notification/email/template-types/{template-type-id}/system-templates/{locale}
Retrieves the system default email template that matches the template-type-id and the locale.
Scope(Permission) required: internal_org_template_mgt_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
template-type-id | path | string | Yes | Template Type ID. |
locale | path | string | Yes | This should be a valid locale. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Search results matching the given criteria. | EmailTemplateWithID |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Forbidden. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
Retrieves the list of system SMS templates with the template type id.
GET /notification/sms/template-types/{template-type-id}/system-templates
Retrieves the list of system default SMS templates under the provided template type.
Scope(Permission) required: internal_org_template_mgt_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
template-type-id | path | string | Yes | Template Type ID. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Search results matching the given criteria. | array of SimpleTemplate |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Forbidden. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
Retrieves the default organization SMS template.
GET /notification/sms/template-types/{template-type-id}/system-templates/{locale}
Retrieves the system default SMS template that matches to the template-type-id and the locale.
Scope(Permission) required: internal_org_template_mgt_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
template-type-id | path | string | Yes | Template Type ID. |
locale | path | string | Yes | This should be a valid locale. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Search results matching the given criteria. | SMSTemplateWithID |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Forbidden. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
Functions
Resets an template type.
POST /notification/reset-template-type
Resets an existing template type by deleting all its user defined templates
from the system.
Scope(Permission) required: internal_org_template_mgt_delete
Request body: application/json
Schema: SimpleTemplateTypeID
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
templateTypeId | string | Yes | Unique ID of the template type. |
channel | string | Yes | Notification channel of the template type (SMS or EMAIL). |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Item/s Deleted. | |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
Schemas
TemplateType
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
displayName | string | Yes | Display name of the template type. |
self | string | Yes | Location of the created/updated resource. |
TemplateTypeOverview
Type: object
1 property
| Name | Type | Required | Description |
|---|---|---|---|
displayName | string | Yes | Display name of the template type. |
TemplateTypeWithID
Type: TemplateType
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
displayName | string | Yes | Display name of the template type. |
self | string | Yes | Location of the created/updated resource. |
id | string | Yes | Unique ID of the template type. |
EmailTemplate
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
contentType | string | Yes | Content type of the email template. |
subject | string | Yes | The subject of the email. |
body | string | Yes | The body of the email. |
footer | string | The footer of the email. |
EmailTemplateWithID
Type: EmailTemplate
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
contentType | string | Yes | Content type of the email template. |
subject | string | Yes | The subject of the email. |
body | string | Yes | The body of the email. |
footer | string | The footer of the email. | |
locale | string | Yes | Locale of the email template. |
SMSTemplateWithID
Type: SMSTemplate
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
body | string | Yes | The body of the SMS. |
locale | string | Yes | Locale of the SMS template. |
SimpleTemplate
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
locale | string | Yes | Locale of the template. |
self | string | Yes | Location of the created/updated resource. resource. |
SimpleTemplateTypeID
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
templateTypeId | string | Yes | Unique ID of the template type. |
channel | string | Yes | Notification channel of the template type (SMS or EMAIL). |
Error
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | |
message | string | Yes | |
description | string | ||
traceId | string |
Was this page helpful?