POST Agents/EMail/CreateDefaultEMailEntity
Some tooltip text!
• 5 minutes to read
• 5 minutes to read
POST /api/v1/Agents/EMail/CreateDefaultEMailEntity
Set default values into a new EMailEntity.
NetServer calculates default values on the entity, which is required when creating/storing a new instance
Online Restricted: ## The EMail agent is not available in Online by default. Access must be requested specifically when app is registered.
Request Headers
Parameter Name | Description |
---|---|
Authorization | Supports 'Basic', 'SoTicket' and 'Bearer' schemes, depending on installation type. |
X-XSRF-TOKEN | If not using Authorization header, you must provide XSRF value from cookie or hidden input field |
Accept | Content-type(s) you would like the response in: application/json , text/json , application/xml , text/xml , application/json-patch+json , application/merge-patch+json |
Accept-Language | Convert string references and multi-language values into a specified language (iso2) code. |
SO-Language | Convert string references and multi-language values into a specified language (iso2) code. Overrides Accept-Language value. |
SO-Culture | Number, date formatting in a specified culture (iso2 language) code. Partially overrides SO-Language/Accept-Language value. Ignored if no Language set. |
SO-TimeZone | Specify the timezone code that you would like date/time responses converted to. |
SO-AppToken | The application token that identifies the partner app. Used when calling Online WebAPI from a server. |
Response:
OK
Response | Description |
---|---|
200 | OK |
Response body: EMailEntity
Property Name | Type | Description |
---|---|---|
To | array | To recipients of e-mail |
Cc | array | Cc recipients of e-mail |
Bcc | array | Bcc recipient of e-mail |
Subject | string | Subject of the e-mail |
HTMLBody | string | Body formatted in HTML |
From | EMailAddress | Who did the e-mail originate from |
Sent | date-time | When was the e-mail sent |
Size | int32 | Total size of the e-mail |
Priority | string | Importance of the e-mail |
Flags | string | Flag status of this mail (unread, replied, deleted ) |
MessageID | string | Unique id of e-mails |
PlainBody | string | Body formatted in plain text |
IsSent | bool | Is this a sent e-mail (not new) |
EMailSOInfo | EMailSOInfo | Glue between SuperOffice data and an e-mail. |
ServerId | int32 | Unique id for the e-mail on the server |
Attachments | array | |
CustomHeaderList | array | Non standard e-mail headers |
FolderName | string | Name of folder the e-mail belongs in |
EmailItemId | int32 | Primary key |
AccountId | int32 | Account Id |
ReceivedAt | date-time | Received date time |
InReplyTo | EMailEnvelope | The envelope of the email this email is a reply to, if it exists |
RepliedAt | date-time | When this email was replied at |
HasCalendarData | bool | If this email contains exactly one iCal appointment |
CalMethod | string | Method stored in the associated iCal appointment. Indicates if the iCal data is a reply, counter proposal etc. |
CalReplyStatus | string | Reply status stored in calendar data for the ical method is REPLY |
TableRight | TableRight | The carrier's table right |
FieldProperties | object | Field property dictionary mapping field names to field access rights. |
Sample request
POST /api/v1/Agents/EMail/CreateDefaultEMailEntity
Authorization: Basic dGplMDpUamUw
Accept: application/json; charset=utf-8
Accept-Language: en
Sample response
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"To": [
{
"ContactId": 147,
"ContactName": "Schiller-Morar",
"PersonId": 811,
"PersonName": "Emard, Wehner and Dibbert",
"AssociateId": 578,
"Address": "non",
"EmailId": 701,
"DuplicatePersonIds": [
363,
55
],
"Name": "Sipes Inc and Sons",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.String",
"FieldLength": 705
}
}
}
],
"Cc": [
{
"ContactId": 928,
"ContactName": "Douglas-Mayert",
"PersonId": 300,
"PersonName": "Vandervort-Jewess",
"AssociateId": 221,
"Address": "rerum",
"EmailId": 96,
"DuplicatePersonIds": [
790,
348
],
"Name": "Larson Inc and Sons",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 500
}
}
}
],
"Bcc": [
{
"ContactId": 777,
"ContactName": "Waters Inc and Sons",
"PersonId": 482,
"PersonName": "Waelchi-Schroeder",
"AssociateId": 5,
"Address": "placeat",
"EmailId": 387,
"DuplicatePersonIds": [
279,
457
],
"Name": "DuBuque Group",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.String",
"FieldLength": 846
}
}
}
],
"Subject": "et",
"HTMLBody": "magnam",
"From": null,
"Sent": "2024-04-28T14:13:40.2347688+02:00",
"Size": 502,
"Priority": "High",
"Flags": "Answered",
"MessageID": "pariatur",
"PlainBody": "exercitationem",
"IsSent": false,
"EMailSOInfo": null,
"ServerId": 614,
"Attachments": [
{
"Description": "User-centric system-worthy info-mediaries",
"Filename": "nam",
"Size": 468,
"Type": "cumque",
"Encoding": "nisi",
"Id": "natus",
"Disposition": "et",
"IsSafeFileExtension": false,
"Stream": "GIF89....File contents as raw bytes...",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 40
}
}
}
],
"CustomHeaderList": [
{
"Name": "Franecki, Douglas and Larson",
"Values": [
"commodi",
"adipisci"
],
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 376
}
}
},
{
"Name": "Franecki, Douglas and Larson",
"Values": [
"commodi",
"adipisci"
],
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 376
}
}
}
],
"FolderName": "Roob Group",
"EmailItemId": 777,
"AccountId": 370,
"ReceivedAt": "2018-01-24T14:13:40.2347688+01:00",
"InReplyTo": null,
"RepliedAt": "2018-04-05T14:13:40.2347688+02:00",
"HasCalendarData": true,
"CalMethod": "Add",
"CalReplyStatus": "Accepted",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.String",
"FieldLength": 642
}
}
}