POST api/PromotionActivity/CreateActivity?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
CreatePromotionActivitiesDto| Name | Description | Type | Additional information |
|---|---|---|---|
| ActivityTitle | string |
None. |
|
| ActivityAddress | string |
None. |
|
| ActivityType | string |
None. |
|
| CustomerID | globally unique identifier |
None. |
|
| CustomerName | string |
None. |
|
| WarehouseID | globally unique identifier |
None. |
|
| WarehouseName | string |
None. |
|
| PersonID | globally unique identifier |
None. |
|
| PersonName | string |
None. |
|
| AccountID | globally unique identifier |
None. |
|
| Remark | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"ActivityTitle": "sample string 1",
"ActivityAddress": "sample string 2",
"ActivityType": "sample string 3",
"CustomerID": "087023bb-8edf-4478-afb6-8ed064d009ed",
"CustomerName": "sample string 4",
"WarehouseID": "40868bfb-424c-4eb1-8bde-fc41eb50dd4c",
"WarehouseName": "sample string 5",
"PersonID": "59fd69ee-fb2c-48f4-a811-806edf40b328",
"PersonName": "sample string 6",
"AccountID": "c00a35e3-4577-4a98-a22b-fa14aa3c2567",
"Remark": "sample string 7"
}
application/xml, text/xml
Sample:
<CreatePromotionActivitiesDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JT.VSFA.Entity.DTO.ApiDTO"> <AccountID>c00a35e3-4577-4a98-a22b-fa14aa3c2567</AccountID> <ActivityAddress>sample string 2</ActivityAddress> <ActivityTitle>sample string 1</ActivityTitle> <ActivityType>sample string 3</ActivityType> <CustomerID>087023bb-8edf-4478-afb6-8ed064d009ed</CustomerID> <CustomerName>sample string 4</CustomerName> <PersonID>59fd69ee-fb2c-48f4-a811-806edf40b328</PersonID> <PersonName>sample string 6</PersonName> <Remark>sample string 7</Remark> <WarehouseID>40868bfb-424c-4eb1-8bde-fc41eb50dd4c</WarehouseID> <WarehouseName>sample string 5</WarehouseName> </CreatePromotionActivitiesDto>
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>