POST api/Employers

Request Information

URI Parameters

None.

Body Parameters

Employer
NameDescriptionTypeAdditional information
Id

integer

None.

EmployerGuid

globally unique identifier

None.

Deleted

boolean

None.

Name

string

None.

Address1

string

None.

Address2

string

None.

Address3

string

None.

City

string

None.

PostCode

string

None.

CGID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "EmployerGuid": "439a40d9-a1e1-4999-825c-763012607998",
  "Deleted": true,
  "Name": "sample string 3",
  "Address1": "sample string 4",
  "Address2": "sample string 5",
  "Address3": "sample string 6",
  "City": "sample string 7",
  "PostCode": "sample string 8",
  "CGID": 9
}

application/xml, text/xml

Sample:
<Employer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CGResourcesAPI.Models">
  <Address1>sample string 4</Address1>
  <Address2>sample string 5</Address2>
  <Address3>sample string 6</Address3>
  <CGID>9</CGID>
  <City>sample string 7</City>
  <Deleted>true</Deleted>
  <EmployerGuid>439a40d9-a1e1-4999-825c-763012607998</EmployerGuid>
  <Id>1</Id>
  <Name>sample string 3</Name>
  <PostCode>sample string 8</PostCode>
</Employer>

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 'Employer'.

Response Information

Resource Description

Employer
NameDescriptionTypeAdditional information
Id

integer

None.

EmployerGuid

globally unique identifier

None.

Deleted

boolean

None.

Name

string

None.

Address1

string

None.

Address2

string

None.

Address3

string

None.

City

string

None.

PostCode

string

None.

CGID

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "EmployerGuid": "a8d021c9-5a02-4123-a20d-ae267135cd10",
  "Deleted": true,
  "Name": "sample string 3",
  "Address1": "sample string 4",
  "Address2": "sample string 5",
  "Address3": "sample string 6",
  "City": "sample string 7",
  "PostCode": "sample string 8",
  "CGID": 9
}

application/xml, text/xml

Sample:
<Employer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CGResourcesAPI.Models">
  <Address1>sample string 4</Address1>
  <Address2>sample string 5</Address2>
  <Address3>sample string 6</Address3>
  <CGID>9</CGID>
  <City>sample string 7</City>
  <Deleted>true</Deleted>
  <EmployerGuid>a8d021c9-5a02-4123-a20d-ae267135cd10</EmployerGuid>
  <Id>1</Id>
  <Name>sample string 3</Name>
  <PostCode>sample string 8</PostCode>
</Employer>