PUT api/2.0/mail/templates/save
Saves a template with the ID specified in the request.
Name |
Description |
Type |
Example |
id
sent in body
|
Template ID which will be saved
|
number
|
1234
|
from
sent in body
|
Mail address from which a letter will be sent. Format: Name <name@domain>
|
string
|
some text
|
to
sent in body
|
List of mail addresses to which a letter will be sent. Format: Name <name@domain>
|
System.Collections.Generic.List`1[System.String]
|
|
cc
sent in body
|
List of "cc" mail addresses. Format: Name <name@domain>
|
System.Collections.Generic.List`1[System.String]
|
|
bcc
sent in body
|
List of "bcc" mail addresses. Format: Name <name@domain>
|
System.Collections.Generic.List`1[System.String]
|
|
mimeReplyToId
sent in body
|
Message ID to which this message replies
|
string
|
some text
|
importance
sent in body
|
Important message or not: true - important, false - not important
|
Bool value
|
true
|
subject
sent in body
|
Message subject
|
string
|
some text
|
tags
sent in body
|
List of tag IDs added to the message
|
System.Collections.Generic.List`1[System.Int32]
|
|
body
sent in body
|
Message body as HTML string
|
string
|
some text
|
attachments
sent in body
|
List of message attachments
|
|
|
calendarIcs
sent in body
|
Calendar event in the iCal format for sending
|
string
|
some text
|
PUT api/2.0/mail/templates/save
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"id": 1234,
"from": "some text",
"to": [
"some text"
],
"cc": [
"some text"
],
"bcc": [
"some text"
],
"mimeReplyToId": "some text",
"importance": true,
"subject": "some text",
"tags": [
1234
],
"body": "some text",
"attachments": [],
"calendarIcs": "some text"
}