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": "63d30fee-06fa-4f54-9c8c-8c51e53e7156"
}
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>63d30fee-06fa-4f54-9c8c-8c51e53e7156</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": "3d1b308d-a00c-4a9c-8f53-7664ed492e11"
}
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>3d1b308d-a00c-4a9c-8f53-7664ed492e11</EmployerGuid> <EmployerId>2</EmployerId> <Id>1</Id> </EmployerCharity>