POST api/UnitArticle/SetDeleteStatus

设置文章状态 删除/还原

Request Information

URI Parameters

None.

Body Parameters

ArticleStatusInput
NameDescriptionTypeAdditional information
Status

从回收站还原 = 1,删除到回收站 = 2

integer

None.

IDList

文章编号

Collection of globally unique identifier

None.

Token

签名

string

None.

SessionID

会话ID

globally unique identifier

None.

TimeStamp

时间戳

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Status": 1,
  "IDList": [
    "acbfbc17-5a2c-4a92-bb49-e3d2d88e7522",
    "afd91ac0-b8c8-4608-b743-04fd8a1b799b"
  ],
  "Token": "sample string 2",
  "SessionID": "3659e30d-a858-4129-a708-c927548d086e",
  "TimeStamp": 3
}

application/xml, text/xml

Sample:
<UnitArticleController.ArticleStatusInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/_30edu.WEBAPI.WX.API.Unit">
  <SessionID xmlns="http://schemas.datacontract.org/2004/07/_30edu.WEBAPI.WX.Models">3659e30d-a858-4129-a708-c927548d086e</SessionID>
  <TimeStamp xmlns="http://schemas.datacontract.org/2004/07/_30edu.WEBAPI.WX.Models">3</TimeStamp>
  <Token xmlns="http://schemas.datacontract.org/2004/07/_30edu.WEBAPI.WX.Models">sample string 2</Token>
  <IDList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:guid>acbfbc17-5a2c-4a92-bb49-e3d2d88e7522</d2p1:guid>
    <d2p1:guid>afd91ac0-b8c8-4608-b743-04fd8a1b799b</d2p1:guid>
  </IDList>
  <Status>1</Status>
</UnitArticleController.ArticleStatusInput>

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 'ArticleStatusInput'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.