Sub Funds
A sub fund or collection of subfunds are used for funds
. This resource does not contain the delete
methods.
Notes ::
- By passing in the
content-type
ofapplication/help
in theaccept
header or using the {format} parameterhelp
from https://CHURCHCODE.fellowshiponeapi.com/giving/v1/subfunds, the API will return an html representation of the help documents for this resource (*authentication not required*)
Authentication
This method requires Authentication
Resource Structure
This resource conforms to the following XSD
Methods
Sub Funds ::
- list [GET] https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/{fundID}/subfunds
- show [GET] https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/{fundID}/subfunds/{id}
- new [GET] https://CHURCHCODE.fellowshiponeapi.com/giving/v1/subfunds/new
- edit [GET] https://CHURCHCODE.fellowshiponeapi.com/giving/v1/subfunds/{id}/edit
- create [POST] https://CHURCHCODE.fellowshiponeapi.com/giving/v1/subfunds
- update [PUT] [POST(Low REST)] https://CHURCHCODE.fellowshiponeapi.com/giving/v1/subfunds/{id}
Method: list [GET]
The list
method will return a list of sub funds.
Notes ::
- By passing in the
content-type
ofapplication/xsd
in theaccept
header or using the {format} parameterxsd
the API will return anxsd
for a single version of this resource (authentication not required)
Content-types ::
- application/json
- application/xml
- application/xsd
- application/help
Format ::
- json
- xml
- xsd
- help
Parameters ::
- {format}
- [GET] https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/{fundID}/subfunds.{format}
- [GET] https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/{fundID}/subfunds?format={format}
- [Header] Accept : {Content-type}
Sample Response ::
Given: [GET] https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/12462/subfunds
Response:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Content-Location: https://CHURCHCODE.fellowshiponeapi.com/giving/v1/subfunds
Server: Microsoft-IIS/7.0
X-AspNetMvc-Version: 1.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Tue, 13 Apr 2010 19:39:35 GMT
Content-Length: 22574
<?xml version="1.0" encoding="utf-8"?>
<subfunds>
<subFund json:Array="true" id="72515" uri="https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/12462/subfunds/72515" oldID="">
<parentFund id="12462" uri="https://CHURCHCODE.fellowshiponeapi.com/giving/v1/v1/funds/12462">
<name>Brotherhood</name>
</parentFund>
<name>Jesse's Subfund 5: Revenge of the Fund</name>
<generalLedger></generalLedger>
<subFundCode></subFundCode>
<isWebEnabled>true</isWebEnabled>
<isActive>true</isActive>
<createdDate>2010-07-01T11:16:26</createdDate>
<createdByPerson id="1999191" uri="{{CONSUMER_ROOT_DOMAIN}}/people/1999191" />
<lastUpdatedDate>2010-05-03T11:13:50</lastUpdatedDate>
<lastUpdatedByPerson id="1999191" uri="{{CONSUMER_ROOT_DOMAIN}}/people/1999191" />
</subFund>
<subFund json:Array="true" id="7961" uri="https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/12462/subfunds/7961" oldID="">
<parentFund id="12462" uri="https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/12462">
<name>Brotherhood</name>
</parentFund>
<name>Men of War Retreats</name>
<generalLedger></generalLedger>
<subFundCode></subFundCode>
<isWebEnabled>true</isWebEnabled>
<isActive>true</isActive>
<createdDate>2010-07-01T11:16:26</createdDate>
<createdByPerson id="1999191" uri="{{CONSUMER_ROOT_DOMAIN}}/people/1999191" />
<lastUpdatedDate>2010-05-03T11:13:50</lastUpdatedDate>
<lastUpdatedByPerson id="1999191" uri="{{CONSUMER_ROOT_DOMAIN}}/people/1999191" />
</subFund>
<subFund json:Array="true" id="927" uri="https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/12462/subfunds/927" oldID="">
<parentFund id="12462" uri="https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/12462">
<name>Brotherhood</name>
</parentFund>
<name>Nicks Sub Fund</name>
<generalLedger></generalLedger>
<subFundCode></subFundCode>
<isWebEnabled>true</isWebEnabled>
<isActive>true</isActive>
<createdDate>2010-07-01T11:16:26</createdDate>
<createdByPerson id="1999191" uri="{{CONSUMER_ROOT_DOMAIN}}/people/1999191" />
<lastUpdatedDate>2010-05-03T11:13:50</lastUpdatedDate>
<lastUpdatedByPerson id="1999191" uri="{{CONSUMER_ROOT_DOMAIN}}/people/1999191" />
</subFund>
...
</subfunds>
Given: [GET] https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/12462/subfunds.json
Response:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/json; charset=utf-8
Content-Location: https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/12462/subfunds.json
Server: Microsoft-IIS/7.0
X-AspNetMvc-Version: 1.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Tue, 13 Apr 2010 19:41:20 GMT
Content-Length: 16419
{
"subFunds":{
"subFund":[
{
"@array":"true",
"@id":"72515",
"@uri":"https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/12462/subfunds/72515",
"@oldID":"",
"parentFund":{
"@id":"12462",
"@uri":"https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/12462",
"name":"Brotherhood"
},
"name":"Jesse's Subfund 5: Revenge of the Fund",
"generalLedger":null,
"subFundCode":null,
"isWebEnabled":"true",
"isActive":"true",
"createdDate": "2010-05-03T11:13:50",
"createdByPerson": {
"@id":"1999191",
"@uri":{{CONSUMER_ROOT_DOMAIN}}/people/1999191"
},
"lastUpdatedDate": "2010-05-03T11:13:50",
"lastUpdatedByPerson": {
"@id":"1999191",
"@uri":{{CONSUMER_ROOT_DOMAIN}}/people/1999191"
}
},
{
"@array":"true",
"@id":"7961",
"@uri":"https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/12462/subfunds/7961",
"@oldID":"",
"parentFund":{
"@id":"12462",
"@uri":"https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/12462",
"name":"Brotherhood"
},
"name":"Men of War Retreats",
"generalLedger":null,
"subFundCode":null,
"isWebEnabled":"true",
"isActive":"true",
"createdDate": "2010-05-03T11:13:50",
"createdByPerson": {
"@id":"1999191",
"@uri":{{CONSUMER_ROOT_DOMAIN}}/people/1999191"
},
"lastUpdatedDate": "2010-05-03T11:13:50",
"lastUpdatedByPerson": {
"@id":"1999191",
"@uri":{{CONSUMER_ROOT_DOMAIN}}/people/1999191"
}
},
...
]
}
}
Method: show [GET]
The show
method will return a single sub fund
for a given id
.
Notes ::
- By passing in the
content-type
ofapplication/xsd
in theaccept
header or using the {format} parameterxsd
the API will return anxsd
for a single version of this resource (authentication not required)
Content-types ::
- application/json
- application/xml
- application/xsd
- application/help
Format ::
- json
- xml
- xsd
- help
Parameters ::
- {format}
- [GET] https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/{fundID}/subfunds/{id}.{format}
- [GET] https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/{fundID}/subfunds/{id}?format={format}
- [Header] Accept : {Content-type}
- {id}
- [GET] https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/{fundID}/subfunds/{id}
Sample Response ::
Given: [GET] https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/12462/subfunds/72515
Response:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Content-Location: https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/12462/subfunds/72515
Server: Microsoft-IIS/7.0
X-AspNetMvc-Version: 1.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Tue, 13 Apr 2010 19:49:23 GMT
Content-Length: 508
<?xml version="1.0" encoding="utf-8"?>
<subFund id="72515" uri="https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/12462/subfunds/72515" oldID="">
<parentFund id="12462" uri="https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/12462">
<name>Brotherhood</name>
</parentFund>
<name>Jesse's Subfund 5: Revenge of the Fund</name>
<generalLedger></generalLedger>
<subFundCode></subFundCode>
<isWebEnabled>true</isWebEnabled>
<isActive>true</isActive>
<createdDate>2010-07-01T11:16:26</createdDate>
<createdByPerson id="1999191" uri="{{CONSUMER_ROOT_DOMAIN}}/people/1999191" />
<lastUpdatedDate>2010-05-03T11:13:50</lastUpdatedDate>
<lastUpdatedByPerson id="1999191" uri="{{CONSUMER_ROOT_DOMAIN}}/people/1999191" />
</subFund>
Given: [GET] https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/12462/subfunds/72515.json
Response:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/json; charset=utf-8
Content-Location: https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/12462/subfunds/72515.json
Server: Microsoft-IIS/7.0
X-AspNetMvc-Version: 1.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Tue, 13 Apr 2010 19:50:22 GMT
Content-Length: 368
{
"subFund":{
"@id":"72515",
"@uri":"https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/12462/subfunds/72515",
"@oldID":"",
"parentFund":{
"@id":"12462",
"@uri":"https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/12462",
"name":"Brotherhood"
},
"name":"Jesse's Subfund 5: Revenge of the Fund",
"generalLedger":null,
"subFundCode":null,
"isWebEnabled":"true",
"isActive":"true",
"createdDate": "2010-05-03T11:13:50",
"createdByPerson": {
"@id":"1999191",
"@uri":{{CONSUMER_ROOT_DOMAIN}}/people/1999191"
},
"lastUpdatedDate": "2010-05-03T11:13:50",
"lastUpdatedByPerson": {
"@id":"1999191",
"@uri":{{CONSUMER_ROOT_DOMAIN}}/people/1999191"
}
}
}
Method: edit [GET]
The edit
method will return a single sub fund for a given id
. The purpose of the edit
method is to retrieve a resource in its most recent condition with its latest values.
Content-types ::
- application/json
- application/xml
- application/help
Format ::
- json
- xml
- help
Parameters ::
- {format}
- [GET] https://CHURCHCODE.fellowshiponeapi.com/giving/v1/subfunds/{id}/edit.{format}
- [GET] https://CHURCHCODE.fellowshiponeapi.com/giving/v1/subfunds/{id}/edit?format={format}
- [Header] Accept : {Content-type}
- {id}
- [GET] https://CHURCHCODE.fellowshiponeapi.com/giving/v1/subfunds/{id}/edit
Sample Response ::
Given: [GET] https://CHURCHCODE.fellowshiponeapi.com/giving/v1/subfunds/72515/edit
Response:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Server: Microsoft-IIS/7.0
X-AspNetMvc-Version: 1.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Tue, 13 Apr 2010 19:52:43 GMT
Content-Length: 508
<?xml version="1.0" encoding="utf-8"?>
<subFund id="72515" uri="https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/12462/subfunds/72515" oldID="">
<parentFund id="12462" uri="https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/12462">
<name>Brotherhood</name>
</parentFund>
<name>Jesse's Subfund 5: Revenge of the Fund</name>
<generalLedger></generalLedger>
<subFundCode></subFundCode>
<isWebEnabled>true</isWebEnabled>
<isActive>true</isActive>
<createdDate>2010-07-01T11:16:26</createdDate>
<createdByPerson id="1999191" uri="{{CONSUMER_ROOT_DOMAIN}}/people/1999191" />
<lastUpdatedDate>2010-05-03T11:13:50</lastUpdatedDate>
<lastUpdatedByPerson id="1999191" uri="{{CONSUMER_ROOT_DOMAIN}}/people/1999191" />
</subFund>
Given: [GET] https://CHURCHCODE.fellowshiponeapi.com/giving/v1/subfunds/72515/edit?json
Response:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/json; charset=utf-8
Server: Microsoft-IIS/7.0
X-AspNetMvc-Version: 1.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Tue, 13 Apr 2010 19:53:35 GMT
Content-Length: 368
{
"subFund":{
"@id":"72515",
"@uri":"https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/12462/subfunds/72515",
"@oldID":"",
"parentFund":{
"@id":"12462",
"@uri":"https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/12462",
"name":"Brotherhood"
},
"name":"Jesse's Subfund 5: Revenge of the Fund",
"generalLedger":null,
"subFundCode":null,
"isWebEnabled":"true",
"isActive":"true",
"createdDate": "2010-05-03T11:13:50",
"createdByPerson": {
"@id":"1999191",
"@uri":{{CONSUMER_ROOT_DOMAIN}}/people/1999191"
},
"lastUpdatedDate": "2010-05-03T11:13:50",
"lastUpdatedByPerson": {
"@id":"1999191",
"@uri":{{CONSUMER_ROOT_DOMAIN}}/people/1999191"
}
}
}
Method: new [GET]
The new
method will return a single sub fund. The purpose of the new
method is to retrieve an empty resource with the proper structure.
Content-types ::
- application/json
- application/xml
- application/help
Format ::
- json
- xml
- help
Parameters ::
- {format}
- [GET] https://CHURCHCODE.fellowshiponeapi.com/giving/v1/subfunds/new.{format}
- [GET] https://CHURCHCODE.fellowshiponeapi.com/giving/v1/subfunds/new?format={format}
- [Header] Accept : {Content-type}
Sample Response ::
Given: [GET] https://CHURCHCODE.fellowshiponeapi.com/giving/v1/subfunds/new
Response:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Server: Microsoft-IIS/7.0
X-AspNetMvc-Version: 1.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Tue, 13 Apr 2010 19:55:29 GMT
Content-Length: 354
<?xml version="1.0" encoding="utf-8"?>
<subFund id="" uri="" oldID="">
<parentFund id="" uri="">
<name />
</parentFund>
<name></name>
<generalLedger></generalLedger>
<subFundCode></subFundCode>
<isWebEnabled></isWebEnabled>
<isActive></isActive>
<createdDate></createdDate>
<createdByPerson id="" uri="" />
<lastUpdatedDate></lastUpdatedDate>
<lastUpdatedByPerson id="" uri="" />
</subFund>
Given: [GET] https://CHURCHCODE.fellowshiponeapi.com/giving/v1/subfunds/new.json
Response:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/json; charset=utf-8
Server: Microsoft-IIS/7.0
X-AspNetMvc-Version: 1.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Tue, 13 Apr 2010 19:56:02 GMT
Content-Length: 220
{
"subFund":{
"@id":"",
"@uri":"",
"@oldID":"",
"parentFund":{
"@id":"",
"@uri":"",
"name":null
},
"name":null,
"generalLedger":null,
"subFundCode":null,
"isWebEnabled":null,
"isActive":null,
"createdDate": null,
"createdByPerson": {
"@id":"",
"@uri":""
},
"lastUpdatedDate":null,
"lastUpdatedByPerson": {
"@id":"",
"@uri":""
}
}
}
Method: create [POST]
The create
method will create a single sub fund.
Notes ::
- This method will return a 201 - Created if successfully created
Content-types ::
- application/json
- application/xml
Format ::
- json
- xml
Parameters ::
- {format}
- [POST] https://CHURCHCODE.fellowshiponeapi.com/giving/v1/subfunds.{format}
- [POST] https://CHURCHCODE.fellowshiponeapi.com/giving/v1/subfunds?format={format}
- [Header] Accept : {Content-type}
Required Fields ::
- subFundName
Sample Response ::
Given: [POST] https://CHURCHCODE.fellowshiponeapi.com/giving/v1/subfunds
Request body:
<?xml version="1.0" encoding="utf-8"?>
<subFund id="" uri="" oldID="">
<parentFund id="12462" uri="">
<name></name>
</parentFund>
<name>Jesse's Subfund 5: Revenge of the Fund</name>
<generalLedger></generalLedger>
<subFundCode></subFundCode>
<isWebEnabled>true</isWebEnabled>
<isActive>true</isActive>
<createdDate></createdDate>
<createdByPerson id="" uri="" />
<lastUpdatedDate></lastUpdatedDate>
<lastUpdatedByPerson id="" uri="" />
</subFund>
Response:
HTTP/1.1 201 Created
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Location: https://CHURCHCODE.fellowshiponeapi.com/giving/v1/subfunds/72515
Server: Microsoft-IIS/7.0
X-AspNetMvc-Version: 1.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Tue, 13 Apr 2010 20:00:43 GMT
Content-Length: 508
<?xml version="1.0" encoding="utf-8"?>
<subFund id="72515" uri="https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/12462/subfunds/72515" oldID="">
<parentFund id="12462" uri="https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/12462">
<name>Brotherhood</name>
</parentFund>
<name>Jesse's Subfund 5: Revenge of the Fund</name>
<generalLedger></generalLedger>
<subFundCode></subFundCode>
<isWebEnabled>true</isWebEnabled>
<isActive>true</isActive>
<createdDate>2010-07-01T11:20:01</createdDate>
<createdByPerson id="1999191" uri="{{CONSUMER_ROOT_DOMAIN}}/people/1999191" />
<lastUpdatedDate></lastUpdatedDate>
<lastUpdatedByPerson id="" uri="" />
</subFund>
Given: [POST] https://CHURCHCODE.fellowshiponeapi.com/giving/v1/subfunds.json
Request body:
{
"subFund":{
"@id":"",
"@uri":"",
"@oldID":"",
"parentFund":{
"@id":"12462",
"@uri":"",
"name":""
},
"name":"Jesse's Subfund 5: Revenge of the Fund",
"generalLedger":null,
"subFundCode":null,
"isWebEnabled":"true",
"isActive":"true",
"createdDate": null,
"createdByPerson": {
"@id":"",
"@uri":""
},
"lastUpdatedDate":null,
"lastUpdatedByPerson": {
"@id":"",
"@uri":""
}
}
}
Response:
HTTP/1.1 201 Created
Cache-Control: private
Content-Type: application/json; charset=utf-8
Location: https://CHURCHCODE.fellowshiponeapi.com/giving/v1/subfunds.json/72515
Server: Microsoft-IIS/7.0
X-AspNetMvc-Version: 1.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Tue, 13 Apr 2010 20:03:54 GMT
Content-Length: 368
{
"subFund":{
"@id":"72515",
"@uri":"https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/12462/subfunds/72515",
"@oldID":"",
"parentFund":{
"@id":"12462",
"@uri":"https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/12462",
"name":"Brotherhood"
},
"name":"Jesse's Subfund 5: Revenge of the Fund",
"generalLedger":null,
"subFundCode":null,
"isWebEnabled":"true",
"isActive":"true",
"createdDate": "2010-05-03T11:13:50",
"createdByPerson": {
"@id":"1999191",
"@uri":"{{CONSUMER_ROOT_DOMAIN}}/people/1999191"
},
"lastUpdatedDate":null,
"lastUpdatedByPerson": {
"@id":"",
"@uri":""
}
}
}
Method: update [PUT] [POST (Low REST)]
The update
method will update a single sub fund.
Content-types ::
- application/json
- application/xml
Format ::
- json
- xml
Parameters ::
- {format}
- [PUT] https://CHURCHCODE.fellowshiponeapi.com/giving/v1/subfunds/{id}.{format}
- [PUT] https://CHURCHCODE.fellowshiponeapi.com/giving/v1/subfunds/{id}?format={format}
- [Header] Accept : {Content-type}
- {id}
- [PUT] https://CHURCHCODE.fellowshiponeapi.com/giving/v1/subfunds/{id}
Required Fields ::
- fund id
- fundName
Sample Response ::
Given: [PUT] https://CHURCHCODE.fellowshiponeapi.com/giving/v1/subfunds/72515
Request body:
<?xml version="1.0" encoding="utf-8"?>
<subFund id="72515" uri="" oldID="">
<parentFund id="12462" uri="">
<name></name>
</parentFund>
<name>Jesse's Subfund 5: Revenge of the Fund</name>
<generalLedger></generalLedger>
<subFundCode></subFundCode>
<isWebEnabled>true</isWebEnabled>
<isActive>true</isActive>
<createdDate>2010-07-01T11:16:26</createdDate>
<createdByPerson id="" uri="" />
<lastUpdatedDate></lastUpdatedDate>
<lastUpdatedByPerson id="" uri="" />
</subFund>
Response:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Content-Location: https://CHURCHCODE.fellowshiponeapi.com/giving/v1/subfunds/72515
Server: Microsoft-IIS/7.0
X-AspNetMvc-Version: 1.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Tue, 13 Apr 2010 20:14:25 GMT
Content-Length: 508
<?xml version="1.0" encoding="utf-8"?>
<subFund id="72515" uri="https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/12462/subfunds/72515" oldID="">
<parentFund id="12462" uri="https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/12462">
<name>Brotherhood</name>
</parentFund>
<name>Jesse's Subfund 5: Revenge of the Fund</name>
<generalLedger></generalLedger>
<subFundCode></subFundCode>
<isWebEnabled>true</isWebEnabled>
<isActive>true</isActive>
<createdDate>2010-07-01T11:16:26</createdDate>
<createdByPerson id="1999191" uri="{{CONSUMER_ROOT_DOMAIN}}/people/1999191" />
<lastUpdatedDate>2010-05-03T11:13:50</lastUpdatedDate>
<lastUpdatedByPerson id="1999191" uri="{{CONSUMER_ROOT_DOMAIN}}/people/1999191" />
</subFund>
Given: [PUT] https://CHURCHCODE.fellowshiponeapi.com/giving/v1/subfunds/18487.json
Request body:
{
"subFund":{
"@id":"72515",
"@uri":"",
"@oldID":"",
"parentFund":{
"@id":"12462",
"@uri":"",
"name":""
},
"name":"Jesse's Subfund 5: Revenge of the Fund",
"generalLedger":null,
"subFundCode":null,
"isWebEnabled":"true",
"isActive":"true",
"createdDate": null,
"createdByPerson": {
"@id":"",
"@uri":""
},
"lastUpdatedDate":null,
"lastUpdatedByPerson": {
"@id":"",
"@uri":""
}
}
}
Response:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/json; charset=utf-8
Content-Location: https://CHURCHCODE.fellowshiponeapi.com/giving/v1/subfunds/72515.json
Server: Microsoft-IIS/7.0
X-AspNetMvc-Version: 1.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Tue, 13 Apr 2010 20:17:30 GMT
Content-Length: 367
{
"subFund":{
"@id":"72515",
"@uri":"https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/12462/subfunds/72515",
"@oldID":"",
"parentFund":{
"@id":"12462",
"@uri":"https://CHURCHCODE.fellowshiponeapi.com/giving/v1/funds/12462",
"name":"Brotherhood"
},
"name":"Jesse's Subfund 5: Revenge of the Fund",
"generalLedger":null,
"subFundCode":null,
"isWebEnabled":"true",
"isActive":"true",
"createdDate": "2010-05-03T11:13:50",
"createdByPerson": {
"@id":"1999191",
"@uri":{{CONSUMER_ROOT_DOMAIN}}/people/1999191"
},
"lastUpdatedDate": "2010-05-03T11:13:50",
"lastUpdatedByPerson": {
"@id":"1999191",
"@uri":{{CONSUMER_ROOT_DOMAIN}}/people/1999191"
}
}
}