Creates a zip file containing email templates at local home and returns the file.
Forge and OAuth2 apps cannot access this REST resource.
This request has no parameters.
Zipping was successful
1
2
3
curl --request GET \
--url 'http://{baseurl}/rest/api/2/email-templates' \
--user 'email@example.com:<api_token>'
Extracts given zip file to temporary templates folder. If the folder already exists it will replace it's content
Forge and OAuth2 apps cannot access this REST resource.
object
Templates has extracted
1
2
3
curl --request POST \
--url 'http://{baseurl}/rest/api/2/email-templates' \
--user 'email@example.com:<api_token>'
Replaces the current email templates pack with previously uploaded one, if exists.
Forge and OAuth2 apps cannot access this REST resource.
This request has no parameters.
Templates were replaced
1
2
3
curl --request POST \
--url 'http://{baseurl}/rest/api/2/email-templates/apply' \
--user 'email@example.com:<api_token>'
Replaces the current email templates pack with default templates, which are copied over from Jira binaries.
Forge and OAuth2 apps cannot access this REST resource.
This request has no parameters.
Templates were restored to default
1
2
3
curl --request POST \
--url 'http://{baseurl}/rest/api/2/email-templates/revert' \
--user 'email@example.com:<api_token>'
Returns a list of root templates mapped with Event Types. The list can be used to decide which test emails to send.
Forge and OAuth2 apps cannot access this REST resource.
This request has no parameters.
Reading email types was successful
1
2
3
curl --request GET \
--url 'http://{baseurl}/rest/api/2/email-templates/types' \
--user 'email@example.com:<api_token>'
Rate this page: