POST api/v1/PrayerWall/PrayerCategory?ipAddress={ipAddress}

Add a new prayer category

Request Information

URI Parameters

NameDescriptionTypeAdditional information
ipAddress

Used for logging IP Address

string

None.

Body Parameters

Prayer category object that needs to be added

PrayerCategoryCreate
NameDescriptionTypeAdditional information
PrayerCategoryID

integer

None.

Name

string

None.

Description

string

None.

Active

boolean

None.

Priority

integer

None.

SamplePrayer1

string

None.

SamplePrayer2

string

None.

SamplePrayer3

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PrayerCategoryID": 1,
  "Name": "sample string 1",
  "Description": "sample string 2",
  "Active": true,
  "Priority": 1,
  "SamplePrayer1": "sample string 3",
  "SamplePrayer2": "sample string 4",
  "SamplePrayer3": "sample string 5"
}

application/xml, text/xml

Sample:
<PrayerCategoryCreate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DPCSWS.Models">
  <Active>true</Active>
  <Description>sample string 2</Description>
  <Name>sample string 1</Name>
  <PrayerCategoryID>1</PrayerCategoryID>
  <Priority>1</Priority>
  <SamplePrayer1>sample string 3</SamplePrayer1>
  <SamplePrayer2>sample string 4</SamplePrayer2>
  <SamplePrayer3>sample string 5</SamplePrayer3>
</PrayerCategoryCreate>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.