PUT api/EmployerCharities/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

EmployerCharity
NameDescriptionTypeAdditional 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": "f894efc3-4a36-41d8-bd0a-016e0fb548d9"
}

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>f894efc3-4a36-41d8-bd0a-016e0fb548d9</EmployerGuid>
  <EmployerId>2</EmployerId>
  <Id>1</Id>
</EmployerCharity>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'EmployerCharity'.

Response Information

Resource Description

None.