POST api/v1/PrayerWall/PrayerModerationRule?ipAddress={ipAddress}
Add a new prayer moderation rule
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| ipAddress |
Used for logging IP Address |
string |
None. |
Body Parameters
Prayer moderation rule object that needs to be added
PrayerModerationRuleCreate| Name | Description | Type | Additional information |
|---|---|---|---|
| RuleId | integer |
None. |
|
| ClientID | string |
None. |
|
| RuleName | string |
None. |
|
| Description | string |
None. |
|
| ActionOnFlag | integer |
None. |
|
| Priority | integer |
None. |
|
| IsActive | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"RuleId": 1,
"ClientID": "sample string 1",
"RuleName": "sample string 2",
"Description": "sample string 3",
"ActionOnFlag": 1,
"Priority": 1,
"IsActive": true
}
application/xml, text/xml
Sample:
<PrayerModerationRuleCreate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DPCSWS.Models"> <ActionOnFlag>1</ActionOnFlag> <ClientID>sample string 1</ClientID> <Description>sample string 3</Description> <IsActive>true</IsActive> <Priority>1</Priority> <RuleId>1</RuleId> <RuleName>sample string 2</RuleName> </PrayerModerationRuleCreate>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.