POST api/EmployerCharities
Request Information
URI Parameters
None.
Body Parameters
EmployerCharity| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| EmployerId | integer |
None. |
|
| CharityNumber | string |
None. |
|
| CGID | integer |
None. |
|
| Deleted | boolean |
None. |
|
| EmployerGuid | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"EmployerId": 2,
"CharityNumber": "sample string 3",
"CGID": 4,
"Deleted": true,
"EmployerGuid": "69e52415-f54a-48f8-a8c1-5e4b1027cb27"
}
application/xml, text/xml
Sample:
<EmployerCharity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CGResourcesAPI.Models"> <CGID>4</CGID> <CharityNumber>sample string 3</CharityNumber> <Deleted>true</Deleted> <EmployerGuid>69e52415-f54a-48f8-a8c1-5e4b1027cb27</EmployerGuid> <EmployerId>2</EmployerId> <Id>1</Id> </EmployerCharity>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
EmployerCharity| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| EmployerId | integer |
None. |
|
| CharityNumber | string |
None. |
|
| CGID | integer |
None. |
|
| Deleted | boolean |
None. |
|
| EmployerGuid | globally unique identifier |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"EmployerId": 2,
"CharityNumber": "sample string 3",
"CGID": 4,
"Deleted": true,
"EmployerGuid": "a46ae146-328d-4e97-9b07-20a4608f7220"
}
application/xml, text/xml
Sample:
<EmployerCharity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CGResourcesAPI.Models"> <CGID>4</CGID> <CharityNumber>sample string 3</CharityNumber> <Deleted>true</Deleted> <EmployerGuid>a46ae146-328d-4e97-9b07-20a4608f7220</EmployerGuid> <EmployerId>2</EmployerId> <Id>1</Id> </EmployerCharity>