POST api/Email/SaveEmailTemplate

保存邮件模板数据

Request Information

URI Parameters

None.

Body Parameters

AutoSendData
NameDescriptionTypeAdditional information
ASEND_ID

integer

None.

ASEND_RelateID

integer

None.

ASEND_RESID

integer

None.

ASEND_TITLE

string

None.

ASEND_ENABLE

boolean

None.

ASEND_TYPE

AutoSendType

None.

ASEND_SubType

string

None.

ASEND_EDTID

string

None.

ASEND_ORDER

integer

None.

ASEND_EDTTIME

date

None.

ASEND_EMAIL_TITLE

string

None.

ASEND_CONTENT

string

None.

ASEND_CONTENT_TYPE

AutoSendContentType

None.

SubData

AutoSendSubData

None.

dblinkname

string

None.

UpdateAutoSendColData

boolean

None.

sendTo

string

None.

sendToCol

string

None.

ListOfAutoSendColData

Collection of AutoSendColData

None.

frequency

FrequencyData

None.

Request Formats

application/json, text/json

Sample:
{
  "ASEND_ID": 1,
  "ASEND_RelateID": 2,
  "ASEND_RESID": 3,
  "ASEND_TITLE": "sample string 4",
  "ASEND_ENABLE": true,
  "ASEND_TYPE": 0,
  "ASEND_SubType": "sample string 6",
  "ASEND_EDTID": "sample string 7",
  "ASEND_ORDER": 8,
  "ASEND_EDTTIME": "2025-04-24T20:52:22.7989946+08:00",
  "ASEND_EMAIL_TITLE": "sample string 10",
  "ASEND_CONTENT": "sample string 11",
  "ASEND_CONTENT_TYPE": 0,
  "SubData": {
    "ParmOfHashTable": {
      "System.Object": {}
    },
    "ResidsDataOfAttach": [
      {},
      {}
    ],
    "HttpFilesOfAttach": [
      {},
      {}
    ],
    "RelatedResidsDataOfAttach": [
      {},
      {}
    ],
    "ResidsOfAutoImport": [
      "sample string 1",
      "sample string 2"
    ],
    "SyncroData": true
  },
  "dblinkname": "sample string 12",
  "UpdateAutoSendColData": true,
  "sendTo": "sample string 14",
  "sendToCol": "sample string 15",
  "ListOfAutoSendColData": [
    {
      "ASENDCOL_ID": 1,
      "ASENDCOL_HOSTID": 2,
      "ASENDCOL_RESID": 3,
      "ASENDCOL_RESPID": 4,
      "ASENDCOL_TYPE": 0,
      "ASENDCOL_COLNAME": "sample string 5",
      "ASENDCOL_COLCOND": "sample string 6",
      "ASENDCOL_COLVALUE": "sample string 7",
      "ASENDCOL_TIME_UNIT": 8,
      "ASENDCOL_ORDER": 9,
      "ASENDCOL_EDTID": "sample string 10",
      "ASENDCOL_EDTTIME": "2025-04-24T20:52:22.7999714+08:00",
      "sendTo": "sample string 12"
    },
    {
      "ASENDCOL_ID": 1,
      "ASENDCOL_HOSTID": 2,
      "ASENDCOL_RESID": 3,
      "ASENDCOL_RESPID": 4,
      "ASENDCOL_TYPE": 0,
      "ASENDCOL_COLNAME": "sample string 5",
      "ASENDCOL_COLCOND": "sample string 6",
      "ASENDCOL_COLVALUE": "sample string 7",
      "ASENDCOL_TIME_UNIT": 8,
      "ASENDCOL_ORDER": 9,
      "ASENDCOL_EDTID": "sample string 10",
      "ASENDCOL_EDTTIME": "2025-04-24T20:52:22.7999714+08:00",
      "sendTo": "sample string 12"
    }
  ],
  "frequency": {
    "Day1": 1,
    "Day2": 2,
    "Day3": 3,
    "Frequency": 0,
    "Hour1": 4,
    "Hour2": 5,
    "Hour3": 6,
    "Minute1": 7,
    "Minute2": 8,
    "Minute3": 9,
    "ResID1": 10,
    "ResID2": 11,
    "RunOnceInterval": 12,
    "Times": 13,
    "UniID": 14
  }
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AutoSendData'.

Response Information

Resource Description

result
NameDescriptionTypeAdditional information
error

错误代码

integer

None.

message

错误信息

string

None.

data

数据

Object

None.

stacktrace

详细错误信息

string

None.

otherdata

其他返回数据

Object

None.

LastError

string

None.

IsComplete

boolean

None.

total

integer

None.

index

integer

None.

IsTerminate

boolean

None.

taskgroupid

integer

None.

taskid

integer

None.

msg

string

None.

status

integer

None.

serverTime

date

None.

lockdata

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "error": 1,
  "message": "sample string 2",
  "data": {},
  "stacktrace": "sample string 4",
  "otherdata": {},
  "LastError": "sample string 6",
  "IsComplete": true,
  "total": 8,
  "index": 9,
  "IsTerminate": true,
  "taskgroupid": 11,
  "taskid": 12,
  "msg": "sample string 13",
  "status": 14,
  "serverTime": "2025-04-24T20:52:22.8126698+08:00",
  "lockdata": {}
}