POST api/Dev/Task/Temp/Add

添加一个新的临时计划任务

Request Information

URI Parameters

None.

Body Parameters

添加的临时计划任务

DevTaskTempParm
NameDescriptionTypeAdditional information
temptaskid

任务ID,执行新增时,不需要提供这个参数的值

integer

None.

taskname

任务名称

string

Required

Max length: 40

typeid

当前任务适应的型号

string

Required

Max length: 4

intervalclass

间隔单位

string

Required

Max length: 1

intervalvalue

间隔时长

integer

Required

reserve1

保留一

string

Max length: 50

reserve2

保留二

string

Max length: 50

Request Formats

application/json, text/json

Sample:
{
  "temptaskid": 1,
  "taskname": "sample string 2",
  "typeid": "sample string 3",
  "intervalclass": "sample string 4",
  "intervalvalue": 5,
  "reserve1": "sample string 6",
  "reserve2": "sample string 7"
}

application/xml, text/xml

Sample:
<DevTaskTempParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Dosimeter">
  <intervalclass>sample string 4</intervalclass>
  <intervalvalue>5</intervalvalue>
  <reserve1>sample string 6</reserve1>
  <reserve2>sample string 7</reserve2>
  <taskname>sample string 2</taskname>
  <temptaskid>1</temptaskid>
  <typeid>sample string 3</typeid>
</DevTaskTempParm>

application/x-www-form-urlencoded

Sample:

Sample not available.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

添加一个新的临时计划任务

CommonOperationResult
NameDescriptionTypeAdditional information
errcode

错误代码,通常0表示成功,其他值表示错误。

integer

None.

errmsg

错误描述,当errcode不为零时,此值可以用于呈现给用户。

string

None.

tag

操作同时,服务器端需要返回的其他值。

string

None.

Response Formats

application/json, text/json

Sample:
{
  "errcode": 1,
  "errmsg": "sample string 2",
  "tag": "sample string 3"
}

application/xml, text/xml

Sample:
<CommonOperationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer">
  <errcode>1</errcode>
  <errmsg>sample string 2</errmsg>
  <tag>sample string 3</tag>
</CommonOperationResult>

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.