POST APIControllers/Wellness/PetWellnessRule
Request Information
URI Parameters
None.
Body Parameters
PetWellnessRuleRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| PetWellnessRuleId | integer |
None. |
|
| SecurityKey | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"PetWellnessRuleId": 1,
"SecurityKey": "sample string 2"
}
application/xml, text/xml
Sample:
<PetWellnessRuleRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/mobile.oneplan.co.za.Models"> <SecurityKey>sample string 2</SecurityKey> <PetWellnessRuleId>1</PetWellnessRuleId> </PetWellnessRuleRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseOfPetWellnessRule| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | boolean |
None. |
|
| Message | string |
None. |
|
| Entity | PetWellnessRule |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": true,
"Message": "sample string 2",
"Entity": {
"Id": 1,
"Description": "sample string 2",
"Footer": "sample string 3",
"PetWellnessRuleActions": [
{
"Id": 1,
"Name": "sample string 2",
"Icon": "sample string 3",
"Label": "sample string 4",
"Action": "sample string 5"
},
{
"Id": 1,
"Name": "sample string 2",
"Icon": "sample string 3",
"Label": "sample string 4",
"Action": "sample string 5"
}
],
"RewardPoints": 4
}
}
application/xml, text/xml
Sample:
<ResponseOfPetWellnessRuleA16EjPBX xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OnePlan.Core">
<Entity xmlns:d2p1="http://schemas.datacontract.org/2004/07/mobile.oneplan.co.za.Models">
<d2p1:Description>sample string 2</d2p1:Description>
<d2p1:Footer>sample string 3</d2p1:Footer>
<d2p1:Id>1</d2p1:Id>
<d2p1:PetWellnessRuleActions>
<d2p1:PetWellnessRuleAction>
<d2p1:Action>sample string 5</d2p1:Action>
<d2p1:Icon>sample string 3</d2p1:Icon>
<d2p1:Id>1</d2p1:Id>
<d2p1:Label>sample string 4</d2p1:Label>
<d2p1:Name>sample string 2</d2p1:Name>
</d2p1:PetWellnessRuleAction>
<d2p1:PetWellnessRuleAction>
<d2p1:Action>sample string 5</d2p1:Action>
<d2p1:Icon>sample string 3</d2p1:Icon>
<d2p1:Id>1</d2p1:Id>
<d2p1:Label>sample string 4</d2p1:Label>
<d2p1:Name>sample string 2</d2p1:Name>
</d2p1:PetWellnessRuleAction>
</d2p1:PetWellnessRuleActions>
<d2p1:RewardPoints>4</d2p1:RewardPoints>
</Entity>
<Message>sample string 2</Message>
<Success>true</Success>
</ResponseOfPetWellnessRuleA16EjPBX>