POST api/PromotionActivity/Create?DomainId={DomainId}&AccountId={AccountId}&PersonId={PersonId}
创建促销活动
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| DomainId |
域Id |
globally unique identifier |
None. |
| AccountId |
账户Id |
globally unique identifier |
None. |
| PersonId |
人员Id |
globally unique identifier |
None. |
Body Parameters
PromotionActivityCreateDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| ActivityTitle | string |
None. |
|
| StartDate | date |
None. |
|
| EndDate | date |
None. |
|
| Remark | string |
None. |
|
| ActivityAddress | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"ActivityTitle": "sample string 1",
"StartDate": "2025-12-17 05:44:04",
"EndDate": "2025-12-17 05:44:04",
"Remark": "sample string 4",
"ActivityAddress": "sample string 5"
}
application/xml, text/xml
Sample:
<PromotionActivityCreateDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JT.VSFA.Entity.DTO.ApiDTO"> <ActivityAddress>sample string 5</ActivityAddress> <ActivityTitle>sample string 1</ActivityTitle> <EndDate>2025-12-17T05:44:04.1591248+08:00</EndDate> <Remark>sample string 4</Remark> <StartDate>2025-12-17T05:44:04.1581255+08:00</StartDate> </PromotionActivityCreateDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResultModelOfBoolean| Name | Description | Type | Additional information |
|---|---|---|---|
| Code | ReturnCode |
None. |
|
| Message | string |
None. |
|
| Data | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"Code": 200,
"Message": "sample string 1",
"Data": true
}
application/xml, text/xml
Sample:
<ResultModelOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JT.VSFA.Utility"> <Code>Success</Code> <Data>true</Data> <Message>sample string 1</Message> </ResultModelOfboolean>