POST api/e/ys/EditActivity?memberID={memberID}&enterpriseID={enterpriseID}

活动编辑

Request Information

URI Parameters

NameDescriptionTypeAdditional information
memberID

globally unique identifier

Required

enterpriseID

globally unique identifier

Required

Body Parameters

ActivityModel
NameDescriptionTypeAdditional information
ID

编号 新建可以为空

globally unique identifier

None.

CategoryID

类别编号 必填

globally unique identifier

None.

AName

名称 必填

string

None.

Info

简介 选填

string

None.

Image

图片 必填

string

None.

Thumbnail

缩略图 选填

string

None.

AContent

详细内容 选填

string

None.

StartTime

开始时间 必填

date

None.

EndTime

结束时间 必填

date

None.

State

状态 选填

boolean

None.

OrderIndex

排序值 选填

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": "1d7650b1-d913-44a9-9430-470834a624a5",
  "CategoryID": "e0b3556b-cec1-450e-bb98-d30c220731dc",
  "AName": "sample string 3",
  "Info": "sample string 4",
  "Image": "sample string 5",
  "Thumbnail": "sample string 6",
  "AContent": "sample string 7",
  "StartTime": "2025-04-18T17:43:27.1749013+08:00",
  "EndTime": "2025-04-18T17:43:27.1749013+08:00",
  "State": true,
  "OrderIndex": 11
}

application/xml, text/xml

Sample:
<ActivityModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LijiyTow.Liji_E.EAPI.Models.E">
  <AContent>sample string 7</AContent>
  <AName>sample string 3</AName>
  <CategoryID>e0b3556b-cec1-450e-bb98-d30c220731dc</CategoryID>
  <EndTime>2025-04-18T17:43:27.1749013+08:00</EndTime>
  <ID>1d7650b1-d913-44a9-9430-470834a624a5</ID>
  <Image>sample string 5</Image>
  <Info>sample string 4</Info>
  <OrderIndex>11</OrderIndex>
  <StartTime>2025-04-18T17:43:27.1749013+08:00</StartTime>
  <State>true</State>
  <Thumbnail>sample string 6</Thumbnail>
</ActivityModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.