GET

Get email templates as zip file

Creates a zip file containing email templates at local home and returns the file.

Request

This request has no parameters.

Responses

Zipping was successful

GET/api/2/email-templates
1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/api/2/email-templates' \ --user 'email@example.com:<api_token>'
POST

Update email templates with zip file

Extracts given zip file to temporary templates folder. If the folder already exists it will replace it's content

Request

Request bodyapplication/zip

object

Responses

Templates has extracted

POST/api/2/email-templates
1 2 3 curl --request POST \ --url 'http://{baseurl}/rest/api/2/email-templates' \ --user 'email@example.com:<api_token>'
POST

Update email templates with previously uploaded pack

Replaces the current email templates pack with previously uploaded one, if exists.

Request

This request has no parameters.

Responses

Templates were replaced

POST/api/2/email-templates/apply
1 2 3 curl --request POST \ --url 'http://{baseurl}/rest/api/2/email-templates/apply' \ --user 'email@example.com:<api_token>'
POST

Update email templates to default

Replaces the current email templates pack with default templates, which are copied over from Jira binaries.

Request

This request has no parameters.

Responses

Templates were restored to default

POST/api/2/email-templates/revert
1 2 3 curl --request POST \ --url 'http://{baseurl}/rest/api/2/email-templates/revert' \ --user 'email@example.com:<api_token>'
GET

Get email types for templates

Returns a list of root templates mapped with Event Types. The list can be used to decide which test emails to send.

Request

This request has no parameters.

Responses

Reading email types was successful

GET/api/2/email-templates/types
1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/api/2/email-templates/types' \ --user 'email@example.com:<api_token>'

Rate this page: